Original Post
I am reviewing angelscript as a script engine for a project I am working on. The lib compiles fine with #define AS_MAX_PORTABILITY. I have trouble running the samples/turial code though: It exits in scriptstring.cpp:318 because r < 0. The actual line is: r = scriptengine->RegisterObjectBehaviour("string", asBEHAVE_CONSTRUCT, "void f()", asFUNCTION(ConstructString), asCALL_CDECL_OBJLAST); assert( r >= 0 ); I debugged and got into: as_scriptengine:1002 int r = DetectCallingConvention(datatype != 0, funcPointer, callConv, &internal); which is being called with isMethod = true, callConv = 3 and therefore exits with asNOT_SUPPORTED Any suggestions?