At 2:14 PM +0200 24/6/03, Emil Jerabek wrote:
On Tue, Jun 24, 2003 at 07:52:44PM +0800, Peter N Lewis wrote:
In Metrowerks Pascal, there is a compiler "variable" that has the name of the source file (SrcFile, String) and the current line number (SrcLine, Integer), which can be quite useful for debugging.
Is there an equivalent in GPC?
GPC preprocessor provides magic "macros" __FILE__ and __LINE__.
And also __func__ ? (As in C99...) These are the three I use to build my C99 assert() function and some other tracing stuff. Grant -- ------------------------------------------------------------------- Grant Jacobs Ph.D. BioinfoTools ph. +64 3 476 1820 (office, after 10am) PO Box 6129, or +64 25 601 5917 (mobile) Dunedin, gjacobs@bioinfotools.com NEW ZEALAND. Bioinformatics tools: deriving knowledge from biological data Bioinformatics tools - software development - consulting - training Check out the website for more details: http://www.bioinfotools.com The information contained in this mail message is confidential and may be legally privileged. Readers of this message who are not the intended recipient are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immed- iately and destroy the original message. This applies also to any attached documents.