On Tue, Apr 26, 2011 at 7:56 AM, Stefan Marr squeak@stefan-marr.de wrote:
Hi Mariano:
On 26 Apr 2011, at 02:05, Mariano Martinez Peck wrote:
Hi guys. I don't know why but with CMakeVMMaker the asserts are not
working. I can see the flags are being set correct in CmakeList.txt:
-DNDEBUG=1
I think Igor and Eliot already answered the question,
Hi Stefan. No, they didn't answer, or yes, they answer but I am so newbie that I don't see it. My question was why I didn't see in the gdb console those outputs of those asserts. If I am compiling with -DNDEBUG=1 I expect the asserts() to be evaluating. And even more, asserta() seems to evaluates always. So...why if I did this:
lookupMethodInClass: class | currentClass dictionary found | <inline: false> self asserta: '42' = 'cuarenta y tres'. self assert: 'mariano' = 'esta perdido'. self print: 'grrrr'; cr. .....
and compile the vm and I fire up an iamge...why only 'grrr' is printed ?? The TWO previous assert are ignored, even the asserta()
If this was answered I thanks someone that could explain it again for me :)
thanks in advance
Mariano
but since nobody pointed you at this document, I will do it. Might help for future questions:
http://linux.die.net/man/3/assert
Best regards Stefan
-- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525