I have a basic c++ Angel console embedded.
I can to some simple print( … ). So something must be right.
But the following script fails in my test script:
void function(){ print( "funtion"); }
with:
ExecuteString (6, 6) : ERR : Expected ';'
ExecuteString (6, 6) : ERR : Instead found identifier 'function'
I suspect I must have some basic registration missing. Any ideas?
/conrad
Follow-up:
Ok, I guess I made some bad assumptions.
I have been testing embedding script engines up to a level I want for C++/Script interoperability.
I got Wren, Lua, ZetScript and Chai done.
Angel seem to take a different approach. I needed to make a distinction between script statements that are executable with ExecuteString(..) and script code that needs compilation with CScriptBuilder and CContextMgr, with section and module etc
I have something working now.
That said, I still think I may be missing some basic point - time will show.
/conrad