Some work toward Issue 27 and Issue 319

This commit is contained in:
Nick Bolton 2010-05-31 21:30:29 +00:00
parent fea12827d4
commit f974d8d680
74 changed files with 4057 additions and 3756 deletions

View file

@ -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>