Skip to content

Next: GetGlobalInstance

Archie_UwU edited this page Aug 20, 2025 · 3 revisions

Returns a pointer to the instance representing the GameMaker global namespace.

Syntax

AurieStatus GetGlobalInstance(
    [out] CInstance** Instance
);

Parameters

Instance

A pointer to the buffer into which the address of the global instance is written. The contents of this buffer are guaranteed to be preserved if the function fails.

Return Value

Value Description
AURIE_SUCCESS The global instance pointer has been written into the buffer.
AURIE_MODULE_INTERNAL_ERROR The internal function needed is unavailable.
AURIE_OBJECT_NOT_FOUND The @@GlobalScope@@ function does not exist.

Requirements

Criterium Value
Minimum YYTK Version 3.0.0
Context Engine-synchronous

Clone this wiki locally