tiny-js
tiny-js copied to clipboard
CTinyJS not defined?
I have tried to compile TinyJS on my Mac, but got:
Script.cpp:50:5: error: use of undeclared identifier 'CTinyJS'; did you mean 'TinyJS'?
CTinyJS *js = (CTinyJS*)userdata;
^~~~~~~
TinyJS
./TinyJS_Functions.h:35:11: note: 'TinyJS' declared here
namespace TinyJS {
^
Script.cpp:50:5: error: unexpected namespace name 'TinyJS': expected expression
CTinyJS *js = (CTinyJS*)userdata;
^
Script.cpp:50:14: error: use of undeclared identifier 'js'
CTinyJS *js = (CTinyJS*)userdata;
^
Script.cpp:50:20: error: use of undeclared identifier 'CTinyJS'; did you mean 'TinyJS'?
CTinyJS *js = (CTinyJS*)userdata;
^~~~~~~
TinyJS
./TinyJS_Functions.h:35:11: note: 'TinyJS' declared here
namespace TinyJS {
^
Script.cpp:50:20: error: unexpected namespace name 'TinyJS': expected expression
CTinyJS *js = (CTinyJS*)userdata;
^
Script.cpp:50:28: error: expected expression
CTinyJS *js = (CTinyJS*)userdata;
^
Script.cpp:51:5: error: use of undeclared identifier 'js'
js->root->trace("> ");
^
7 errors generated.
Should I use -DCTinyJS=TinyJS, maybe?
have same problem on linux, try this https://github.com/MarcoLizza/tiny-js/issues/2