Joy Online Manual

NAME
objc:varPtr - Get the address of a C variable

SYNOPSIS

objc:varPtr name ?type?

DESCRIPTION
Returns the address of the C extern variable with the given name. The pointer may optionally be type-casted to type *.

EXAMPLE

joy> objc:peek [objc:varPtr NSBlack float]
0.0

SEE ALSO

objc:declare
objc:peek
objc:poke

KEYWORDS
dereferencing, pointer, variable

Index