mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 20:05:33 +00:00
replaced UNUSED and assert combination by a fixed up assert macro - thanks luis! :)
This commit is contained in:
parent
2844ab6912
commit
489106ae5e
19 changed files with 3 additions and 26 deletions
|
|
@ -96,8 +96,8 @@ public:
|
|||
{ if ( ::PlatformAssert::processAssert(::PlatformAssert::Fatal, __FILE__, __LINE__, y) ) { ::Platform::debugBreak(); } } }
|
||||
|
||||
#else
|
||||
#define AssertFatal(x, y) { (void)sizeof(x); (void)sizeof(y); }
|
||||
#define AssertWarn(x, y) { (void)sizeof(x); (void)sizeof(y); }
|
||||
#define AssertFatal(x, y) { TORQUE_UNUSED(x); TORQUE_UNUSED(y); }
|
||||
#define AssertWarn(x, y) { TORQUE_UNUSED(x); TORQUE_UNUSED(y); }
|
||||
#endif
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -623,7 +623,6 @@ void Profiler::dump()
|
|||
{
|
||||
FileStream fws;
|
||||
bool success = fws.open(mDumpFileName, Torque::FS::File::Write);
|
||||
TORQUE_UNUSED(success);
|
||||
AssertFatal(success, "Cannot write profile dump to specified file!");
|
||||
char buffer[1024];
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ typedef double F64; ///< Compiler independent 64-bit float
|
|||
|
||||
struct EmptyType {}; ///< "Null" type used by templates
|
||||
|
||||
#define TORQUE_UNUSED(var) (void)var
|
||||
#define TORQUE_UNUSED(var) (void)(var)
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------- String Types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue