mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
macro cleanup
This commit is contained in:
parent
ad5d0b6d1b
commit
3d488bbbf0
4 changed files with 6 additions and 6 deletions
|
|
@ -248,7 +248,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s() - image asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ImageAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s() - image asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ImageAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (m##name)\
|
else if (!m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s() - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
Con::errorf("%s(%s)::_set%s() - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
@ -467,7 +467,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s(%i) - image asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), index, _in, ImageAsset::getAssetErrstrn(m##name##Asset[index]->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s(%i) - image asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), index, _in, ImageAsset::getAssetErrstrn(m##name##Asset[index]->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (bool(m##name[index]) == NULL)\
|
else if (!m##name[index])\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s(%i) - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), index, _in);\
|
Con::errorf("%s(%s)::_set%s(%i) - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), index, _in);\
|
||||||
return false; \
|
return false; \
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@ public: \
|
||||||
Con::errorf("%s::_set%s() - material asset failure\"%s\" due to [%s]", macroText(className), macroText(name), _in, MaterialAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s::_set%s() - material asset failure\"%s\" due to [%s]", macroText(className), macroText(name), _in, MaterialAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (m##name)\
|
else if (!m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s::_set%s() - Couldn't load material \"%s\"", macroText(className), macroText(name), _in);\
|
Con::errorf("%s::_set%s() - Couldn't load material \"%s\"", macroText(className), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
|
||||||
|
|
@ -299,7 +299,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s() - shape asset failure \"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ShapeAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s() - shape asset failure \"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, ShapeAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (m##name)\
|
else if (!m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s() - Couldn't load shape \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
Con::errorf("%s(%s)::_set%s() - Couldn't load shape \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
@ -495,7 +495,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s(%i) - shape asset failure \"%s\" due to [%s]", macroText(className), getName(), macroText(name), index, _in, ShapeAsset::getAssetErrstrn(m##name##Asset[index]->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s(%i) - shape asset failure \"%s\" due to [%s]", macroText(className), getName(), macroText(name), index, _in, ShapeAsset::getAssetErrstrn(m##name##Asset[index]->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (bool(m##name[index]) == NULL)\
|
else if (!m##name[index])\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s(%i) - Couldn't load shape \"%s\"", macroText(className), getName(), macroText(name), index, _in);\
|
Con::errorf("%s(%s)::_set%s(%i) - Couldn't load shape \"%s\"", macroText(className), getName(), macroText(name), index, _in);\
|
||||||
return false; \
|
return false; \
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ public: \
|
||||||
Con::errorf("%s(%s)::_set%s() - sound asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, SoundAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
Con::errorf("%s(%s)::_set%s() - sound asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, SoundAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||||
return false; \
|
return false; \
|
||||||
}\
|
}\
|
||||||
else if (m##name)\
|
else if (!m##name)\
|
||||||
{\
|
{\
|
||||||
Con::errorf("%s(%s)::_set%s() - Couldn't load sound \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
Con::errorf("%s(%s)::_set%s() - Couldn't load sound \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||||
return false;\
|
return false;\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue