Original Post
I'm trying to register a variable parameter method like in this example: http://www.angelcode.com/angelscript/sdk/docs/manual/doc_adv_var_type.html
but in an object.
r = engine->RegisterObjectMethod("JGizmo", "void KeepInBounds( ?∈ )",
asMETHOD( JGizmo, call),
asCALL_GENERIC); assert( r >= 0 );
but it fails to register with code: asWRONG_CALLING_CONV
with asCALL_THISCALL it just crashes when accessing the asIScriptGeneric object.
Is this possible at all for object methods?
but in an object.
r = engine->RegisterObjectMethod("JGizmo", "void KeepInBounds( ?∈ )",
asMETHOD( JGizmo, call),
asCALL_GENERIC); assert( r >= 0 );
but it fails to register with code: asWRONG_CALLING_CONV
with asCALL_THISCALL it just crashes when accessing the asIScriptGeneric object.
Is this possible at all for object methods?