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

@@ -12,11 +12,10 @@
#include "llvm/StringExtras.h"
#include "Base64.h"
#include "Log.h"
using namespace nt;
#define DEBUG(str) puts(str)
ATOMIC_STATIC_INIT(Storage)
Storage::Storage() {}