Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: __LINE macro in pro*c

Re: __LINE macro in pro*c

From: Marc Legault <marclegault_at_tmi.ca>
Date: Wed, 14 Oct 1998 14:06:46 GMT
Message-ID: <Wd2V1.4044$VW6.31110163@news.magma.ca>


I don't know which version of the precompiler you are using, however, for version 2.1 of the Pro*C precompiler, a command line option is available for you to gain access to the original line numbers. Add the following to your command
line:

           LINES=YES This will then cause the 'C' compiler to ignore any precompiler generated lines. As
an added benefit, any compile errors will also have the correct line number from the
'pc' file.

Good luck.
By the way, mlegault_at_tmi.ca wrote this message.

pradeepj_at_delhi.tcs.co.in wrote in message <6vil8q$tqq$1_at_nnrp1.dejanews.com>...
>Hi!
>I am doing some error logging in my pro*c program and I am
>using the macro __LINE__ to get the line number in the pro*c
>program file.
>But on running this program it is giving incorrect line numbers.
>It is giving corresponding line numbers of generated 'C' file.
>
>Can any body tell me how to find correct line numbers in
>the pro*c file.
>
>Thanks in advance,
>-Pradeep
>
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Wed Oct 14 1998 - 09:06:46 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US