Pragma directives (ACS) - DavidPH/GDCC GitHub Wiki

Pragma directives are typically ways to enable/disable certain features of the compiler. They can be placed outside of functions/scripts or inside, with them affecting either the rest of the file or the rest of the function/script.

block_scope

#pragma block_scope <on/off>

When on, local variables inside a block are invisible to the rest of the script/function. When off (the default) local variables inside a block are visible to the rest of the script/function.

define raw

#pragma define raw <on/off>

When on, #define macros work like those in C, allowing object-like macros, and allows macros to appear anywhere and expand to nearly any text sequence. When off (the default), macros behave largely identically to ACC with most of the same limitations.

fixed

#pragma fixed <on/off>

Toggles both fixed_literal and fixed_type pragmas on or off (the default).

fixed_literal

#pragma fixed_literal <on/off>

When on, fixed point literals have the proper fixed type. When off (the default), fixed point literals are of int type, to keep behavior the same as in ACC.

fixed_type

#pragma fixed_type <on/off>

When on, the fixed type becomes a proper fixed-point type. When off (the default), fixed is an alias to int, to keep behavior the same as in ACC.

⚠️ **GitHub.com Fallback** ⚠️