Skip to main content

IAR Embedded Workbench for RL78 5.20

__sourcePosition

In this section:
Syntax
__sourcePosition(linePtr, colPtr)
Parameters
linePtr

Pointer to the variable storing the line number

colPtr

Pointer to the variable storing the column number

Return value

Result

Value

Successful

Filename string

Unsuccessful

Empty ("") string

Table 47. __sourcePosition return values 


For use with

All C-SPY drivers.

Description

If the current execution location corresponds to a source location, this macro returns the filename as a string. It also sets the value of the variables, pointed to by the parameters, to the line and column numbers of the source location.