Re: [jsapigen-devel] jsapigen, C++ , and license of generated files
Status: Beta
Brought to you by:
tdz
From: Thomas Z. <td...@us...> - 2008-10-19 08:39:08
|
Hi > can i interface to C++ ? Well, jsapigen aims to generate pure ISO C89 code. So this can at least be linked together. My approach to C++ support has always been to auto-generate some wrapper code around C++ constructs, something like class my_class { public: int foo(); }; int my_class_foo(void *p) { return ((my_class*)p)->foo(); } and then call my_class_foo from within the JavaScript engine. But I don't know if there already is such a wrapper generator. Otherwise you might have a look at 'jsgen' [1]. AFAICS this program does something similar to jsapigen and uses C++. However it doesn't seem to be under active development. > what is the generated files' license? Whatever you want, copyleft, bsd-style, proprietary. Only jsapigen itself is covered by the GPL. Best regards, Thomas [1] http://www.cs.unm.edu/~cello/jsgen/ |