You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Archie_UwU edited this page Nov 19, 2023
·
2 revisions
Finds a built-in function by it's name, and returns the pointer to it.
Syntax
boolGetFunctionByName(
const std::string& Name // The name of the function (ex. "room_goto", "array_get")
TRoutine& outRoutine // The variable that receives the address of the built-in function
);
Parameters
Name
The name of the built-in function. These are the same as the function names used in GameMaker Language, and are case-insensitive.
Thus, room_goto is the same as RoOm_GoTo, and both will find the same function.
outRoutine
A reference to a TRoutine function pointer, which will receive the address of the built-in function.
Return Value
The function returns true if the function is found, and the pointer is returned via outRoutine.
Otherwise, the function returns false and outRoutine's contents are unchanged.