Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: __LINE__ macro in pro*c
A copy of this was sent to pradeepj_at_delhi.tcs.co.in
(if that email address didn't require changing)
On Thu, 08 Oct 1998 15:18:02 GMT, you wrote:
>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
use the
lines=yes
proc precompiler flag.... if you just type proc, you'll see a list of the options to proc, the lines one is documented as:
lines no add #line directives to the generated code
Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Herndon VA
--
http://govt.us.oracle.com/ -- downloadable utilities
Anti-Anti Spam Msg: if you want an answer emailed to you, you have to make it easy to get email to you. Any bounced email will be treated the same way i treat SPAM-- I delete it. Received on Thu Oct 08 1998 - 11:44:26 CDT