Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Pro*C/C++, __FILE__ and __LINE__

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@nnrp1.deja.com>


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


//#########################################################

//------------------- Pro*C/C++ code : BEGIN --------------
#include <stdio.h>
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 - 09:30:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US