Getting the script context in a (generic) function call
gamedev.net
Is there a way to get the asIScriptContext while handling a generic function call?The asIScriptGeneric argument only gives me access to the asIScriptEngine. However, I want to get to the user data of the script context in which the function is executed.Currently the only way that I see to achieve this, is to set a thread local variable before I call into AS.
0 Comments ·0 Shares ·43 Views