libnxter  0.1
Debug.nxc File Reference

Debugging utility macros. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Debugging utility macros.

To use the debugging utility macros, define ENABLE_DEBUG somewhere before including this file and use ASSERT() or WARNING() macros within function definitions (especially, in the begining of function definitions to assert input arguments' sanity). If ENABLE_DEBUG is not defined, they do nothing and the code will be free of any debugging overheads.

Same goes for TEST() macro. Define ENABLE_TEST somewhere before including this file and use the macro to verify test results.

Definition in file Debug.nxc.