- {l Code}: {l Select All Code}
Created camera manager
*** Initialising script engine AngelScript ***
AS: (0, 0) : ERR :
Failed in call to function 'RegisterGlobalFunction' with 'int stringToInt(string &in)' (Code: -7)
OpenDungeons.bin: /home/tom/Opendungeons/opendungeons/source/ASWrapper.cpp:188: void ASWrapper::registerEverything(): Assertion `r >= 0' failed.
./OpenDungeonsNoStdoutNoStderr: line 3: 7060 Aborted ./OpenDungeons.bin
-7 is <a href="#notsupported" >asNOT_SUPPORTED</a> ,
For what IRC says it;'s calling convertion not supproted .
That what happens on IA32.
On AMD64 it works fine though .
- {l Code}: {l Select All Code}
r = engine->RegisterGlobalFunction(
"int stringToInt(string &in)",
asFUNCTION(Helper::stringToT<int>),
asCALL_CDECL); assert(r >= 0);
Anyone who was implementing AS in this game ?