diff --git a/Manual/contents/GameMaker_Language/GML_Reference/OS_And_Compiler/gml_pragma.htm b/Manual/contents/GameMaker_Language/GML_Reference/OS_And_Compiler/gml_pragma.htm index 5007c86b3..0370d1b8e 100644 --- a/Manual/contents/GameMaker_Language/GML_Reference/OS_And_Compiler/gml_pragma.htm +++ b/Manual/contents/GameMaker_Language/GML_Reference/OS_And_Compiler/gml_pragma.htm @@ -38,6 +38,10 @@

gml_pragma

gml_pragma("UnityBuild", "true");

The benefit of doing a unity build is that builds are faster but the down side is that it does a full build each time so even if you change a single part of the code it will build everything again without using any cached files. This has been added specifically for the Xbox One export using the YYC although it can be called for other builds (YYC only). For more information on unity builds, please see here. +
  • "AllowReentrantStatic" - This pragma reverts static initialisation to the old re-entrant initialisation behaviour of GameMaker versions up to 2024.8. It is a project-wide setting and so cannot be put around code sections. The following code enables this old behaviour:  +

    gml_pragma( "AllowReentrantStatic", true);

    +

     You should only use this in existing projects that make use of the old behaviour. GMRT will no longer allow it.

    +
  •  The first argument to the gml_pragma function must be a compile-time string constant and not a variable.

    Compiler Optimisations