Joy Online Manual

NAME
objc:loadMacros - Load constant definitions from a file

SYNOPSIS

objc:loadMacros fileName

DESCRIPTION
Loads a whole file containing macro definitions. Normally, you should not need that command since Joy looks for the file macros.$tcl_platform(os).$tcl_platform(osVersion).$tcl_platform(machine) in all the auto_path directories during initialization, and loads that file automatically if found. In its default configuration this file contains at least all the macro constants, enum constants, and extern variables from the header files ansi.h, libc.h, AppKit.h, Foundation.h, itkTcl.h, and itkObjC.h. To use a macro constant in your code you have to enclose its name in brackets.

The macro file is an ASCII file containing one macro per line. Each line starts with the name of the constant followed by a space. Then a "!" or a "@" character follows. The "!" directly specifies a macro value. It is followed by the byte length of the value's string representation, a ":" sign and the value's string representation. The "@" defines an external constant which is defined at runtime. It is followed by the length of the value's encoded type definition, a ":" sign and the value's encoded type definition.

SEE ALSO

objc:decode
objc:define
objc:encode
objc:info
objc:undef

KEYWORDS
constants, macros

Index