Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Pro*C/C++, __FILE__ and __LINE__
Hi,
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 --------------
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
//--------------------------------------------------------- //#########################################################
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Oct 07 1999 - 09:30:58 CDT