Extend debugging sample

--HG--
branch : feature-crashreport
This commit is contained in:
kaetemi 2015-03-06 19:06:10 +01:00
parent b896405b3d
commit 230be4d64b

View file

@ -20,6 +20,11 @@
// contains all debug features
#include <nel/misc/debug.h>
void repeatederror()
{
nlassert(false && "hit always ignore");
}
int main(int /* argc */, char ** /* argv */)
{
// 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");
}
for (int i = 0; i < 32; ++i)
repeatederror();
printf("\nPress <return> to exit\n");
getchar();