Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Function decleration registration #10
We talked about the ability to also call the function registration handlers, and inject and register new SQF functions. We need this functionality to properly call back into the C++ realm.
the ability to register
TYPE functionname ARRAY( TYPE, TYPE, TYPE) would be ideal - with return values. This would allow us to begin registering extended SQF functionality.
But to get the same outcome via the callExtension method you also have to pass data through variables.. So the callExtension variant to do the same would be something like this
missionNamespace setVariable ["ARG","hello"]; missionNamespace getVariable "ARG"; "intercept" callExtension "test"; missionNamespace setVariable ["RETURN","you"]; missionNamespace getVariable "RETURN";
0.0152 ms (Release Mode)
Which means it's a substancial improvement just for moving the Intercept functions to Native SQF Functions.