-
Notifications
You must be signed in to change notification settings - Fork 13
Legacy: GetGlobalInstance routine
Archie_UwU edited this page Nov 19, 2023
·
1 revision
You are reading the documentation of YYToolkit Legacy (v2.x.x) - for documentation on current-gen YYTK, see the Homepage.
Returns the global
GML namespace as a CInstance
pointer.
bool GetGlobalInstance(
CInstance*& outInstance
);
A reference to a CInstance
pointer, to which the pointer to the global namespace will be written.
The function returns true
if the function succeeds and outInstance
is populated.
Otherwise, the function returns false
and outInstance
's contents are unchanged.
Due to how lookups of the global instance work in recent YYToolkit versions, the function will fail if the runner doesn't have the @@GlobalScope@@
function. This shouldn't be the case in anything newer than GMS version 1.4.9999.