commit x64 compilation from lulu cause the other branch dont seems to compile properly at home
This commit is contained in:
28
include/platform/assert/nassert.cpp
Normal file
28
include/platform/assert/nassert.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#if __PLATFORM_WINDOWS__
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include "assert/nassert.h"
|
||||
#include "nstring/nstring.h"
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void GS::Assert::Trigger(const char *source, int line, const char *condition, const char *message)
|
||||
{
|
||||
String description = String::Format("%s\n\nFile: %s\nLine %d\n", condition, source, line);
|
||||
if (message)
|
||||
description += String("\nDetail: ") + message;
|
||||
|
||||
#if __PLATFORM_WINDOWS__
|
||||
MessageBoxA(NULL, description.c_str(), "Assertion failed!", MB_ICONSTOP);
|
||||
DebugBreak();
|
||||
#endif
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user