SourcePoint Intel Help

Table of Contents

forward

Declare a forward reference to a debug procedure.

Syntax

forward proc [return-type] name

Where:

proc

specifies a procedure is being declared.

return-type

specifies the procedure data type returned.

name

specifies the procedure name.

Discussion

Debug procedures must be defined before they can be referenced.  Sometimes this isn’t practical.  The forward command can be used to declare a debug procedure type, so that it can be referenced (without a syntax error), before it is actually defined.

Note:  forward is only allowed within a debug procedure definition

Example 1

To reference a debug procedure named max before it is defined.

Command Input:

define proc myProc()

{

     forward proc ord4 max // max returns an ord4

     printf("max = %x\n", max())

}

 

define proc ord4 max()

{

     return 0x10

}

 

myProc

Result:

max = 0x10

Related Topics