mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-10 16:00:46 +00:00
Merge pull request #1452 from marauder2k9-torque/MEMORY-MANAGER-REFACTOR
Memory Manager Refactor
This commit is contained in:
commit
6cda97867c
38 changed files with 581 additions and 1811 deletions
|
|
@ -516,7 +516,12 @@ if (m##name##AssetId[index] != StringTable->EmptyString())\
|
|||
else Con::warnf("Warning: %s::LOAD_SOUNDASSET_ARRAY(%s[%i])-%s", mClassName, m##name##AssetId[index], index, ImageAsset::getAssetErrstrn(assetState).c_str());\
|
||||
}
|
||||
|
||||
#define assetEnumNameConcat(x,suff)(new std::string( x + std::string(#suff)))->c_str()
|
||||
#define assetEnumNameConcat(x, suff) ([](const char* base) { \
|
||||
String result = String(base) + #suff; \
|
||||
char* ret = Con::getReturnBuffer(result.length() + 1); \
|
||||
dStrcpy(ret, result.c_str(), result.length() + 1); \
|
||||
return ret; \
|
||||
})(x)
|
||||
|
||||
#define INITPERSISTFIELD_SOUNDASSET_ENUMED(name, enumType, maxValue, consoleClass, docs) \
|
||||
for (U32 i = 0; i < maxValue; i++)\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue