__sourcePosition
In this section:
Syntax
__sourcePosition(linePtr, colPtr)
Parameters
linePtrPointer to the variable storing the line number
colPtrPointer to the variable storing the column number
Return value
Result | Value |
|---|---|
Successful | Filename string |
Unsuccessful | Empty ( |
Table 48. __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.