Joy Online Manual

NAME
objc:define - Define a constant

SYNOPSIS

objc:define name value

DESCRIPTION
Defines a macro constant in a manner analogous to a C preprocessor #define statement. To use a macro constant in your code you have to enclose its name in brackets. All macro constants, enum constants and extern variables defined in the header files ansi.h, libc.h, AppKit.h, Foundation.h, itkTcl.h, and itkObjC.h are already available by default.

EXAMPLE

joy> objc:define FIVE 5
joy> expr [FIVE] + 4
9

SEE ALSO

objc:info
objc:loadMacros
objc:undef

KEYWORDS
constants, macros

Index