Skip to content

Commit

Permalink
Calling conventions for Assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mormert committed Sep 17, 2023
1 parent 9813310 commit 7b9f87f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions engine/jleEASTL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@

#define ASSERTION_EASTL_BREAK __debugbreak();

#ifndef JLE_CDECL
#ifdef _MSC_VER
#define JLE_CDECL __cdecl
#else
#define JLE_CDECL
#endif
#endif

namespace eastl
{
void __cdecl AssertionFailure(const char *af)
void JLE_CDECL AssertionFailure(const char *af)
{
perror(af);
ASSERTION_EASTL_BREAK
Expand All @@ -23,7 +31,7 @@ void __cdecl AssertionFailure(const char *af)

namespace eastl
{
void __cdecl AssertionFailure(const char *af)
void JLE_CDECL AssertionFailure(const char *af)
{
perror(af);
assert(0);
Expand Down

0 comments on commit 7b9f87f

Please sign in to comment.