Add logging framework.

DEBUG messages are completely optimized out if NDEBUG is defined.
This commit is contained in:
Peter Johnson
2015-07-31 22:41:26 -07:00
parent afcfdb13a0
commit 4356e313ec
9 changed files with 143 additions and 25 deletions

View File

@@ -288,6 +288,10 @@ const char *NT_LoadPersistent(const char *filename,
* Utility Functions
*/
void NT_SetLogger(NT_LogFunc func, unsigned int min_level) {
nt::SetLogger(func, min_level);
}
void NT_DisposeValue(NT_Value *value) {
switch (value->type) {
case NT_UNASSIGNED: