Printing __FILE__ to RDebug, FLogger or wherever else
| Mon, 2005-05-02 08:49 | |
|
Hi I am constructing a set of debugging macros and from then I am trying to print the source code file name to RDebug. It is possible for example, as follows: Code: TPtrC8 pFile; pFile.Set( (TText8*)(__FILE__) ); HBufC* hFile = HBufC::NewLC( pFile.Length() ); hFile->Des().Copy( pFile ); RDebug::Print(*hFile); The problem is that I am going to print filenames very-very often and I wouldn't like to allocate memory and perform run-time 8bit->16bit convertion always. Is there a way to get from preprocessor a file name as a 16bit descriptor? Unfortunately my macro skills are quite low ![]() The best I could invent is: Code: bufFile = _L( L## __FILE__ ); , but it doesn't compile, saying "undefined identifier '_LL'"Is there a way to get from preprocessor a file name as a 16bit descriptor? |
|






