Hi there,
I'm working with
Clarion 6.3.9056
Windows XP
I need a way to know the filename and fileline of file which is under
compilation to popup them in a message box like the ASSERT() clarion
function does.
If you put an ASSERT(FALSE) statement in your code, you will see that,
when
the program flow reaches that statement it show a popup say something like
'Assert failed on file xxx.clw at line NNN'
Degugging the code I can see that, at assembly level, the compiler load on
register eax the name of the filename and on ebx the linenumber, so I know
for shure that it knows this information
In a C/CPP compiler you have two macros
__FILE__
and
__LINE__
that get expanded when it is run the c preprocessor (and does this macro
expansion), so I could write something like
MESSAGE( __FILE__ )
and reach my goal.
Any idea how to get this info in a clw file?
Thanks, Luca
--
--
Luca Arzeni


|