C-GLOBAL:
Factor documentation > Factor handbook > C library interface > Accessing C global variables
Next:&:


Vocabulary
alien.syntax

Syntax
C-GLOBAL: type name


Inputs and outputs
typea C type
namea C global variable name


Word description
Defines a getter name and setter set-name for the global value in the current library, set with LIBRARY:.

Definition
USING: alien.parser parser ;

IN: alien.syntax

SYNTAX: C-GLOBAL: scan-c-type scan-new-word define-global ;