Skip to content

Macros#

goboscript has a C-like preprocessor. This allows you to define macros and include files.

Include#

Include the contents of a file.

%include path/to/file.gs

Define#

Define a macro. That identifier will be substituted with the subsequent text.

%define macro_name replacement text

Define with arguments#

Define a macro with arguments. The arguments will be substituted with the tokens from the callsite.

%define macro_name(arg1, arg2) replacement text