Added static assertions to secure code

Former-commit-id: 207f1135b3b40cee74fbf8ba98e6fb7379ba8c33
This commit is contained in:
Lynix
2013-08-03 20:58:50 +02:00
parent 19e02a900b
commit 1ebaf4749c
3 changed files with 48 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ namespace
"Error: ", // nzErrorType_Normal
"Warning: " // nzErrorType_Warning
};
static_assert(sizeof(errorType)/sizeof(const char*) == nzErrorType_Max+1, "Error type array is incomplete");
}
NzLog::NzLog() :