Hi Eliot. I noticed that in the Cog VM there are a lot of asserts in the code. I am trying to understand them but I have a couple of questions:<br><br>- What happens with the code execution when an assert fails? it stops the execution? it continues? it raises an error? I tried to follow to the definition of assert() but I only came to this:<br>
# define assert(expr) ((expr)||(warning(#expr " " __stringifyNum(__LINE__)),0))<br><br>So....after time, I understood that when I compile in "development" and I run with GDB, and I have something printed in the console like:<br>
<br>(primitiveIndexOf(GIV(newMethod))) != 0 8913<br><br>this means that in the line 8913 the assert has failed? so, do I understand correct? when an assert fails, the code continues to execute, but it just prints the expresion + number of line in the console?<br>
if it doesn't fail, it doesn't print.<br><br>thanks in advance,<br><br>Mariano<br><br>