411 REFERENCE · Wikibooks
Futurebasic/Language/Reference/proc
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
PROC
function
Syntax
procAddress& = PROC "label"
Description
This function looks for the indicated label in your program, and returns a memory address which can be used to call the instructions which follow label. Typically, label will indicate the beginning of an ENTERPROC procedure which is to be used as a "callback procedure" by a MacOS Toolbox routine.
In cpu68K compiles, PROC returns the memory address of the first program instruction that follows the label. This is the same as the address returned by the LINE function.
in cpuPPC compiles, PROC returns a "universal procedure pointer." This allows MacOS Toolbox routines in PPC machines to correctly use the referenced ENTERPROC procedure as a callback procedure.
See Also
CALLENTERPROC; LINE; @FN