Skip to content

CTinyJS not defined? #1

@IngwiePhoenix

Description

@IngwiePhoenix

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions