mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
46 lines
749 B
C++
46 lines
749 B
C++
/**
|
|
@file debugAssert.cpp
|
|
|
|
Windows implementation of assertion routines.
|
|
|
|
@maintainer Morgan McGuire, graphics3d.com
|
|
|
|
@created 2001-08-26
|
|
@edited 2006-02-02
|
|
*/
|
|
|
|
#include "RbxPlatform.h" // includes <windows.h>
|
|
|
|
#include "RbxAssert.h"
|
|
#include "RbxFormat.h"
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
namespace RBX {
|
|
|
|
namespace _internal {
|
|
AssertionHook _debugHook;
|
|
AssertionHook _failureHook;
|
|
} // internal
|
|
|
|
void setAssertionHook(AssertionHook hook) {
|
|
RBX::_internal::_debugHook = hook;
|
|
}
|
|
|
|
AssertionHook assertionHook() {
|
|
return RBX::_internal::_debugHook;
|
|
}
|
|
|
|
void setFailureHook(AssertionHook hook) {
|
|
RBX::_internal::_failureHook = hook;
|
|
}
|
|
|
|
AssertionHook failureHook() {
|
|
return RBX::_internal::_failureHook;
|
|
}
|
|
|
|
|
|
} // namespace
|
|
|