POLYVOX_HALT() implementation for Linux.

This commit is contained in:
David Williams 2012-12-26 16:44:34 +01:00
parent a3cb8f7a76
commit 3653528ae5

View File

@ -24,11 +24,17 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_ErrorHandling_H__ #ifndef __PolyVox_ErrorHandling_H__
#define __PolyVox_ErrorHandling_H__ #define __PolyVox_ErrorHandling_H__
#include <iostream> #include <cstdlib> //For std::exit
#include <iostream> //For std::cerr
#define POLYVOX_ASSERTS_ENABLED #define POLYVOX_ASSERTS_ENABLED
#define POLYVOX_HALT() __debugbreak() #if defined(_MSC_VER)
#define POLYVOX_HALT() __debugbreak()
#else
#define POLYVOX_HALT() std::exit(EXIT_FAILURE)
#endif
#define POLYVOX_UNUSED(x) do { (void)sizeof(x); } while(0) #define POLYVOX_UNUSED(x) do { (void)sizeof(x); } while(0)
/* /*