From b5b06c4a106d5e4b724c89644fc582cf4736f9c8 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sat, 31 Jul 2021 17:06:19 -0500 Subject: [PATCH] assettext/macrotext/assetdoc refinements ala https://github.com/TorqueGameEngines/Torque3D/pull/518 --- Engine/source/assets/assetBase.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Engine/source/assets/assetBase.h b/Engine/source/assets/assetBase.h index ec9ee265d..352efa1f1 100644 --- a/Engine/source/assets/assetBase.h +++ b/Engine/source/assets/assetBase.h @@ -170,9 +170,9 @@ private: }; //helper macro for stitching string and non string values togeather sans quotes -#define assetText(x,suff) std::string(std::string(#x) + std::string(#suff)).c_str() -#define macroText(x) std::string(std::string(#x)).c_str() -#define assetDoc(x,suff) std::string(std::string("@brief") + std::string(#x) + std::string(#suff)).c_str() +#define assetText(x,suff) #x#suff +#define macroText(x) #x +#define assetDoc(x,suff) "@brief "#x" "#suff #endif // _ASSET_BASE_H_