mirror of
https://github.com/godotengine/godot.git
synced 2026-02-24 22:36:38 +03:00
Revert "Core: Use __fastfail() in MSVC error macros"
This reverts commit b23a233b5b.
This commit is contained in:
@@ -32,10 +32,6 @@
|
|||||||
|
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#include <intrin.h> // `__fastfail()`.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class String;
|
class String;
|
||||||
class ObjectID;
|
class ObjectID;
|
||||||
|
|
||||||
@@ -95,11 +91,11 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
|
|||||||
#define FUNCTION_STR __FUNCTION__
|
#define FUNCTION_STR __FUNCTION__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
/**
|
/**
|
||||||
* Don't use GENERATE_TRAP() directly, should only be used be the macros below.
|
* Don't use GENERATE_TRAP() directly, should only be used be the macros below.
|
||||||
*/
|
*/
|
||||||
#define GENERATE_TRAP() __fastfail(7 /* FAST_FAIL_FATAL_APP_EXIT */)
|
#define GENERATE_TRAP() __debugbreak()
|
||||||
#else
|
#else
|
||||||
/**
|
/**
|
||||||
* Don't use GENERATE_TRAP() directly, should only be used be the macros below.
|
* Don't use GENERATE_TRAP() directly, should only be used be the macros below.
|
||||||
|
|||||||
Reference in New Issue
Block a user