Futurebasic/Language/Reference/proc
From Wikibooks, open books for an open world
< Futurebasic | Language | Reference
Contents |
[edit] PROC
[edit] function
[edit] Syntax
<code><i>procAddress&</i> = <b>PROC</b> <i>"label"</i></code>
[edit] 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,
PROCreturns the memory address of the first program instruction that follows the label. This is the same as the address returned by theLINEfunction. - in cpuPPC compiles,
PROCreturns a "universal procedure pointer." This allows MacOS Toolbox routines in PPC machines to correctly use the referencedENTERPROCprocedure as a callback procedure.[edit] See Also
CALLENTERPROC; LINE; @FN
This page may need to be