Enable STL assertions in debug builds.

This commit is contained in:
Steve Checkoway
2008-05-16 12:31:56 +00:00
parent b3e11dcb94
commit 1c01c8f4b0
@@ -1,6 +1,12 @@
#ifndef ARCH_SETUP_DARWIN_H #ifndef ARCH_SETUP_DARWIN_H
#define ARCH_SETUP_DARWIN_H #define ARCH_SETUP_DARWIN_H
#ifdef DEBUG
// Enable STL assertions
#define _GLIBCXX_DEBUG
#define _GLIBCXX_DEBUG_PEDANTIC
#endif
// Replace the main function. // Replace the main function.
extern "C" int SM_main( int argc, char *argv[] ); extern "C" int SM_main( int argc, char *argv[] );
#define main(x,y) SM_main(x,y) #define main(x,y) SM_main(x,y)