Skip to content

Commit

Permalink
fix: fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 22, 2025
1 parent f8ba3c7 commit 55743a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/legacy/api/APIHelp.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
#define CATCH(LOG) \
catch (const Exception& e) { \
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
return Local<Value>(); \
} \
Expand Down Expand Up @@ -100,7 +100,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
#define CATCH_C(LOG) \
catch (const Exception& e) { \
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
return nullptr; \
} \
Expand All @@ -114,7 +114,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
#define CATCH_S(LOG) \
catch (const Exception& e) { \
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
return; \
} \
Expand All @@ -128,7 +128,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
#define CATCH_WITHOUT_RETURN(LOG) \
catch (const Exception& e) { \
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
} \
catch (...) { \
Expand All @@ -140,7 +140,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
#define CATCH_IN_CALLBACK(callback) \
catch (const Exception& e) { \
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error( \
std::string("In callback for ") + callback \
); \
Expand Down

0 comments on commit 55743a3

Please sign in to comment.