-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels