LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I need a function call to know source code line

As a program runs, I want my code to be able to determine what source code line corresponds to a given function call. The customer writes a program that calls library functions that generate a queue to be run on another processor. If a no match condition occurs in running that queue, the customer wants to be able to refer back to the source code line that set up that slot.
0 Kudos
Message 1 of 2
(2,911 Views)
Try the __LINE__ macro (simialr macros include __FUNCTION__ and __FILE__).
0 Kudos
Message 2 of 2
(2,897 Views)