Skip to content

Commit

Permalink
refactor: remove noexcept specifier from logging functions
Browse files Browse the repository at this point in the history
  • Loading branch information
khoren93 committed Nov 30, 2024
1 parent b5c5826 commit efa9eb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

bool isLogEnabled;

void setLoggingEnabled(bool enabled) noexcept
void setLoggingEnabled(bool enabled)
{
isLogEnabled = enabled;
}

void platform_log(const char* fmt, ...) noexcept
void platform_log(const char* fmt, ...)
{
if (isLogEnabled)
{
Expand Down
4 changes: 2 additions & 2 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
#define FUNCTION_ATTRIBUTE __declspec(dllexport)
#endif

void platform_log(const char* fmt, ...) noexcept;
void platform_log(const char* fmt, ...);

void setLoggingEnabled(bool enabled) noexcept;
void setLoggingEnabled(bool enabled);

0 comments on commit efa9eb5

Please sign in to comment.