c++.dos.32-bits - Concerning __FILE__ __FUNC__
- ZaitcevE.V. (18/18) Nov 21 2001 Why at compilation of the following code:(sc test.cpp -mx -c -cpp)
- Rajiv Bhagwat (6/24) Nov 22 2001 A little testing shows that __FUNC__ is not defined for DMC. What is you...
- Walter (4/36) Nov 22 2001 __FUNCTION__ is the one he's likely looking for.
- Walter (11/50) Nov 22 2001 Ignore that last post of mine (!). __FUNC__ is defined and should work.
- Jan Knepper (3/4) Nov 22 2001 You should be able to just 'cancel' them...
- ZaitcevE.V. (7/23) Nov 22 2001 mr.Wolter,
- Jan Knepper (4/22) Nov 22 2001 As far as I know __FUNC__ works just fine...
- ZaitcevE.V. (15/35) Nov 22 2001 char
Why at compilation of the following code:(sc test.cpp -mx -c -cpp) void kpdodebug(unsigned const char *, unsigned const char *, unsigned const char *); class efdat { private: char *dat; public: int rezbl; efdat() { kpdodebug(__FILE__, __FUNC__, __TIMESTAMP__); }; }; The mistake is given out: test.cpp(13) : Error: expression expected --- errorlevel 1
Nov 21 2001
A little testing shows that __FUNC__ is not defined for DMC. What is your reasoning for assuming so? (Does it work for any other compiler?) -Rajiv Bhagwat ZaitcevE.V. <Genior km.ru> wrote in message news:9tibih$1as3$1 digitaldaemon.com...Why at compilation of the following code:(sc test.cpp -mx -c -cpp) void kpdodebug(unsigned const char *, unsigned const char *, unsigned constchar*); class efdat { private: char *dat; public: int rezbl; efdat() { kpdodebug(__FILE__, __FUNC__, __TIMESTAMP__); }; }; The mistake is given out: test.cpp(13) : Error: expression expected --- errorlevel 1
Nov 22 2001
__FUNCTION__ is the one he's likely looking for. www.digitalmars.com/ctg/predefined.html "Rajiv Bhagwat" <dataflow vsnl.com> wrote in message news:9tid72$1d54$1 digitaldaemon.com...A little testing shows that __FUNC__ is not defined for DMC. What is your reasoning for assuming so? (Does it work for any other compiler?) -Rajiv Bhagwat ZaitcevE.V. <Genior km.ru> wrote in message news:9tibih$1as3$1 digitaldaemon.com...Why at compilation of the following code:(sc test.cpp -mx -c -cpp) void kpdodebug(unsigned const char *, unsigned const char *, unsigned constchar*); class efdat { private: char *dat; public: int rezbl; efdat() { kpdodebug(__FILE__, __FUNC__, __TIMESTAMP__); }; }; The mistake is given out: test.cpp(13) : Error: expression expected --- errorlevel 1
Nov 22 2001
Ignore that last post of mine (!). __FUNC__ is defined and should work. #include <stdio.h> void main() { printf("__FUNC__ = '%s'\n", __FUNC__); } prints: __FUNC__ = 'main' "Walter" <walter digitalmars.com> wrote in message news:9tjfh0$2nmf$1 digitaldaemon.com...__FUNCTION__ is the one he's likely looking for. www.digitalmars.com/ctg/predefined.html "Rajiv Bhagwat" <dataflow vsnl.com> wrote in message news:9tid72$1d54$1 digitaldaemon.com...yourA little testing shows that __FUNC__ is not defined for DMC. What isreasoning for assuming so? (Does it work for any other compiler?) -Rajiv Bhagwat ZaitcevE.V. <Genior km.ru> wrote in message news:9tibih$1as3$1 digitaldaemon.com...Why at compilation of the following code:(sc test.cpp -mx -c -cpp) void kpdodebug(unsigned const char *, unsigned const char *, unsigned constchar*); class efdat { private: char *dat; public: int rezbl; efdat() { kpdodebug(__FILE__, __FUNC__, __TIMESTAMP__); }; }; The mistake is given out: test.cpp(13) : Error: expression expected --- errorlevel 1
Nov 22 2001
Walter wrote:Ignore that last post of mine (!). __FUNC__ is defined and should work.You should be able to just 'cancel' them... Jan
Nov 22 2001
mr.Wolter, These macroconst I always use for debugging and all was good. The mistake has arisen at use them in the designer of a class (it(he) enough large). I use the compiler: Digital Mars Compiler Version 8.0B7n Walter <walter digitalmars.com> ÐÉÛÅÔ × ÓÏÏÂÝÅÎÉÉ:9tji0g$2qs5$2 digitaldaemon.com...Ignore that last post of mine (!). __FUNC__ is defined and should work. #include <stdio.h> void main() { printf("__FUNC__ = '%s'\n", __FUNC__); } prints: __FUNC__ = 'main' "Walter" <walter digitalmars.com> wrote in message news:9tjfh0$2nmf$1 digitaldaemon.com...__FUNCTION__ is the one he's likely looking for. www.digitalmars.com/ctg/predefined.html
Nov 22 2001
"ZaitcevE.V." wrote:Why at compilation of the following code:(sc test.cpp -mx -c -cpp) void kpdodebug(unsigned const char *, unsigned const char *, unsigned const char *); class efdat { private: char *dat; public: int rezbl; efdat() { kpdodebug(__FILE__, __FUNC__, __TIMESTAMP__); };I thing the ';' here is not supposed to be there isn't it???}; The mistake is given out: test.cpp(13) : Error: expression expected --- errorlevel 1As far as I know __FUNC__ works just fine... Jan
Nov 22 2001
Jan Knepper <jan smartsoft.cc> ïèøåò â ñîîáùåíèè:3BFD4AE5.22BBAC5E smartsoft.cc..."ZaitcevE.V." wrote:charWhy at compilation of the following code:(sc test.cpp -mx -c -cpp) void kpdodebug(unsigned const char *, unsigned const char *, unsigned constJan it is a typing error in the message. The mistake arises at use in the designer of a class. Can check up. begin 666 Test.cpp M=F]I9 T*:W!D;V1E8G5G*'5N<VEG;F5D(&-O;G-T(&-H87( *BP =6YS:6=N M;&%S<R!E9F1A= T*(" ('L-"B ("!P<FEV871E. T*(" (" ("!C:&%R M(" (" (" *F1A=#L-" T*(" ('!U8FQI8SH-" T*(" (" ("!I;G0 ` end*); class efdat { private: char *dat; public: int rezbl; efdat() { kpdodebug(__FILE__, __FUNC__, __TIMESTAMP__); };I thing the ';' here is not supposed to be there isn't it??? As far as I know __FUNC__ works just fine... Jan
Nov 22 2001