Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-10

-gl -Co as compiler directives?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alan Mead

Are there a source-code directives to generate line numbers and check overflows? I compile my code on several systems and it's a lot more convenient enabling or disabling these in the code.

-Alan

Reply by email

Jonas Maebe
to Alan Mead
Alan Mead wrote
Are there a source-code directives to generate line numbers

Not directly, although although you can get the same effect by using

{$d+}
uses lineinfo;

(as long as you want the equivalent of -gl, and not of -g-l)

and check overflows?
{$q+}

Jonas

Reply by email

Alan Mead
to Jonas Maebe

Thanks!

However, lininfo doesn't seem to be working in 1.9.4 (it seems to be included but it does not duplicate the behavior of -gl in that line numbers are NOT shown when there is an exception).

Is this maybe a more recent addition? Or am I confused?

Thanks again.

-Alan

--- Jonas Maebe wrote 25 lines
On 18 okt 2004, at 19:14, Alan Mead wrote: > Are there a source-code directives to generate line numbers Not directly, although although you can get the same effect by using {$d+} uses lineinfo; (as long as you want the equivalent of -gl, and not of -g-l) > and check overflows? {$q+} Jonas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email