[*] Assertions should static_cast<bool> because if statements are implicitly castable to bool but literal bool types arent
This commit is contained in:
parent
22d03229ae
commit
613a4b1455
@ -44,7 +44,7 @@
|
||||
#define SysAssert(tru, ...) \
|
||||
do \
|
||||
{ \
|
||||
SysAssertFileEx(__FILE__, __LINE__, __FUNCTION__, tru, ## __VA_ARGS__); \
|
||||
SysAssertFileEx(__FILE__, __LINE__, __FUNCTION__, static_cast<bool>(tru), ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
/**
|
||||
@ -83,7 +83,7 @@
|
||||
#define SysAssert(tru, ...) \
|
||||
do \
|
||||
{ \
|
||||
SysAssertEx(tru, ## __VA_ARGS__); \
|
||||
SysAssertEx(static_cast<bool>(tru), ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
/**
|
||||
@ -178,7 +178,7 @@
|
||||
#define SysAssertExp(tru, ...) \
|
||||
do \
|
||||
{ \
|
||||
SysAssertExpEx(_AUKCON_STRINGIFY_X(tru), tru, ## __VA_ARGS__); \
|
||||
SysAssertExpEx(_AUKCON_STRINGIFY_X(tru), static_cast<bool>(tru), ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user