TYPEDEF:
Factor handbook > C library interface > Passing data between Factor and C > C type specifiers

Prev:CALLBACK:
Next:lookup-c-type ( name -- c-type )


Vocabulary
alien.syntax

Syntax
TYPEDEF: old new


Inputs and outputs
olda C type
newa C type


Word description
Aliases the C type old under the name new.

Notes
This word differs from typedef in that it runs at parse time, to ensure correct ordering of operations when loading source files. Words defined in source files are compiled before top-level forms are run, so if a source file defines C binding words and uses typedef, the type alias won't be available at compile time.

See also
typedef

Definition