diff --git a/modules/core/task/include/task.hpp b/modules/core/task/include/task.hpp index 512bc9d6c..ec977ca62 100644 --- a/modules/core/task/include/task.hpp +++ b/modules/core/task/include/task.hpp @@ -109,16 +109,16 @@ class Task { /// @brief Validates input data and task attributes before execution. /// @return True if validation is successful. virtual bool Validation() final { - InternalOrderTest(__builtin_FUNCTION()); + InternalOrderTest(PPC_FUNC_NAME); return ValidationImpl(); } /// @brief Performs preprocessing on the input data. /// @return True if preprocessing is successful. virtual bool PreProcessing() final { - InternalOrderTest(__builtin_FUNCTION()); + InternalOrderTest(PPC_FUNC_NAME); if (state_of_testing_ == StateOfTesting::kFunc) { - InternalTimeTest(__builtin_FUNCTION()); + InternalTimeTest(PPC_FUNC_NAME); } return PreProcessingImpl(); } @@ -126,16 +126,16 @@ class Task { /// @brief Executes the main logic of the task. /// @return True if execution is successful. virtual bool Run() final { - InternalOrderTest(__builtin_FUNCTION()); + InternalOrderTest(PPC_FUNC_NAME); return RunImpl(); } /// @brief Performs postprocessing on the output data. /// @return True if postprocessing is successful. virtual bool PostProcessing() final { - InternalOrderTest(__builtin_FUNCTION()); + InternalOrderTest(PPC_FUNC_NAME); if (state_of_testing_ == StateOfTesting::kFunc) { - InternalTimeTest(__builtin_FUNCTION()); + InternalTimeTest(PPC_FUNC_NAME); } return PostProcessingImpl(); } diff --git a/modules/core/util/include/util.hpp b/modules/core/util/include/util.hpp index ef3112a34..2785084f0 100644 --- a/modules/core/util/include/util.hpp +++ b/modules/core/util/include/util.hpp @@ -6,6 +6,8 @@ #include #include +#define PPC_FUNC_NAME __func__ + #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4459)