Bladeren bron

Update with PR feedback RELEASE -> _RELEASE

Signed-off-by: rgba16f <[email protected]>
rgba16f 3 jaren geleden
bovenliggende
commit
007e7e8d98

+ 3 - 3
Gems/ScriptAutomation/Code/Source/ScriptAutomationScriptBindings.cpp

@@ -22,7 +22,7 @@ namespace ScriptAutomation
     {
         void Print(const AZStd::string& message [[maybe_unused]])
         {
-#ifndef RELEASE //AZ_TracePrintf does nothing in release, ignore this call
+#ifndef _RELEASE //AZ_TracePrintf does nothing in release, ignore this call
             auto func = [message]()
             {
                 AZ_TracePrintf("ScriptAutomation", "Script: %s\n", message.c_str());
@@ -34,7 +34,7 @@ namespace ScriptAutomation
 
         void Warning(const AZStd::string& message [[maybe_unused]])
         {
-#ifndef RELEASE //AZ_Warning does nothing in release, ignore this call
+#ifndef _RELEASE //AZ_Warning does nothing in release, ignore this call
             auto func = [message]()
             {
                 AZ_Warning("ScriptAutomation", false, "Script: %s", message.c_str());
@@ -46,7 +46,7 @@ namespace ScriptAutomation
 
         void Error(const AZStd::string& message [[maybe_unused]])
         {
-#ifndef RELEASE //AZ_Error does nothing in release, ignore this call
+#ifndef _RELEASE //AZ_Error does nothing in release, ignore this call
             auto func = [message]()
             {
                 AZ_Error("ScriptAutomation", false, "Script: %s", message.c_str());

+ 3 - 3
Gems/ScriptAutomation/Code/Source/ScriptAutomationSystemComponent.cpp

@@ -253,7 +253,7 @@ namespace ScriptAutomation
         AZ::Data::Asset<AZ::ScriptAsset> scriptAsset = LoadScriptAssetFromPath(scriptFilePath, *m_scriptContext.get());
         if (!scriptAsset)
         {
-#ifndef RELEASE // AZ_Error is a no-op in release builds
+#ifndef _RELEASE // AZ_Error is a no-op in release builds
             // Push an error operation on the back of the queue instead of reporting it immediately so it doesn't get lost
             // in front of a bunch of queued m_scriptOperations.
             QueueScriptOperation([scriptFilePath]()
@@ -265,7 +265,7 @@ namespace ScriptAutomation
             return;
         }
 
-#ifndef RELEASE // AZ_Error is a no-op in release builds
+#ifndef _RELEASE // AZ_Error is a no-op in release builds
         QueueScriptOperation([scriptFilePath]()
             {
                 AZ_Printf("ScriptAutomation", "Running script '%s'...\n", scriptFilePath);
@@ -275,7 +275,7 @@ namespace ScriptAutomation
 
         if (!m_scriptContext->Execute(scriptAsset->m_data.GetScriptBuffer().data(), scriptFilePath, scriptAsset->m_data.GetScriptBuffer().size()))
         {
-#ifndef RELEASE // AZ_Error is a no-op in release builds
+#ifndef _RELEASE // AZ_Error is a no-op in release builds
             // Push an error operation on the back of the queue instead of reporting it immediately so it doesn't get lost
             // in front of a bunch of queued m_scriptOperations.
             QueueScriptOperation([scriptFilePath]()