459
Comment:
|
488
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
{{{ #include "emassert.h" | {{{ #include "emassert.h" ... |
Line 4: | Line 7: |
... | |
Line 5: | Line 9: |
If you need kind of assertion behavior in production code. We suggest you consider exception instead. |
If you need kind of assertion behavior in production code. We suggest you consider [:eman2Exception:exception] instead. |
EMAN2 has wrapped standard assert call as Assert. The header file is "emassert.h" instead of standard <cassert> or <assert.h>. The assert call will only be available when you enable "DEBUG" in the cmake compilation configurations. it will not be compiled into the release mode (default mode). For example:
#include "emassert.h" ... Assert (x==1) ...
If you need kind of assertion behavior in production code. We suggest you consider [:eman2Exception:exception] instead.