POLYVOX_HALT() implementation for Linux.
This commit is contained in:
parent
a3cb8f7a76
commit
3653528ae5
@ -24,11 +24,17 @@ freely, subject to the following restrictions:
|
||||
#ifndef __PolyVox_ErrorHandling_H__
|
||||
#define __PolyVox_ErrorHandling_H__
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib> //For std::exit
|
||||
#include <iostream> //For std::cerr
|
||||
|
||||
#define POLYVOX_ASSERTS_ENABLED
|
||||
|
||||
#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)
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user