Pro*C/C++, __FILE__ and __LINE__
From: Alex Vinokur <alexander.vinokur_at_telrad.co.il>
Date: Thu, 07 Oct 1999 14:30:58 GMT
Message-ID: <7tiar2$o48$1_at_nnrp1.deja.com>
Hi,
int main()
{
=== Pro*C/C++ : Release 8.0.5.0.0
=== SunOS 5.6
Date: Thu, 07 Oct 1999 14:30:58 GMT
Message-ID: <7tiar2$o48$1_at_nnrp1.deja.com>
Hi,
[Quoted] Is there in Pro*C/C++ something like the __FILE__ and __LINE__ macros? Using these macros in *.pc files doesn't cause to desirable result.
Thanks in advance, Alex //##########################################################include <stdio.h>
//------------------- Pro*C/C++ code : BEGIN --------------
int main()
{
printf ("%s, #%d\n", __FILE__, __LINE__); // file main.pc, line#4
return 0;
}
//------------------- Pro*C/C++ code : END ----------------
//#########################################################
//------------------- Running Results : BEGIN -------------
main.c, #135
//------------------- RunninG Results : END ---------------
//#########################################################
//------------------- Database, Compiler, System ---------
=== Oracle 8.0.5
=== Pro*C/C++ : Release 8.0.5.0.0
=== SunOS 5.6
//--------------------------------------------------------- //#########################################################
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Oct 07 1999 - 16:30:58 CEST