mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-11 00:58:14 +08:00
Some work toward Issue 27 and Issue 319
This commit is contained in:
@@ -98,6 +98,10 @@
|
||||
// this one's a little too aggressive
|
||||
# pragma warning(disable: 4127) // conditional expression is constant
|
||||
|
||||
// Code Analysis
|
||||
# pragma warning(disable: 6011)
|
||||
|
||||
|
||||
// emitted incorrectly under release build in some circumstances
|
||||
# if defined(NDEBUG)
|
||||
# pragma warning(disable: 4702) // unreachable code
|
||||
@@ -129,6 +133,15 @@
|
||||
// define NULL
|
||||
#include <stddef.h>
|
||||
|
||||
// we don't want to use NULL since it's old and nasty, so replace any
|
||||
// usages with nullptr (warning: this could break many things).
|
||||
// if not c++0x yet, future proof code by allowing use of nullptr
|
||||
#ifdef nullptr
|
||||
#define NULL nullptr
|
||||
#else
|
||||
#define nullptr NULL
|
||||
#endif
|
||||
|
||||
// make assert available since we use it a lot
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user