mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-03 16:54:47 +00:00
Extend debugging sample
This commit is contained in:
parent
0c1bba4540
commit
0a2c891c75
1 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,11 @@
|
||||||
// contains all debug features
|
// contains all debug features
|
||||||
#include <nel/misc/debug.h>
|
#include <nel/misc/debug.h>
|
||||||
|
|
||||||
|
void repeatederror()
|
||||||
|
{
|
||||||
|
nlassert(false && "hit always ignore");
|
||||||
|
}
|
||||||
|
|
||||||
int main(int /* argc */, char ** /* argv */)
|
int main(int /* argc */, char ** /* argv */)
|
||||||
{
|
{
|
||||||
// all debug functions have different behaviors in debug and in release mode.
|
// all debug functions have different behaviors in debug and in release mode.
|
||||||
|
@ -70,6 +75,9 @@ int main(int /* argc */, char ** /* argv */)
|
||||||
nlinfo("nlerror() generated an EFatalError exception, just ignore it");
|
nlinfo("nlerror() generated an EFatalError exception, just ignore it");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < 32; ++i)
|
||||||
|
repeatederror();
|
||||||
|
|
||||||
printf("\nPress <return> to exit\n");
|
printf("\nPress <return> to exit\n");
|
||||||
getchar();
|
getchar();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue