Use preprocessor to exclude platform specify code instead of cmake

This commit is contained in:
2025-03-31 22:17:35 +10:00
parent e76927f847
commit 6a77722ff5
18 changed files with 80 additions and 66 deletions

View File

@@ -52,9 +52,9 @@ namespace Nova {
#define NOVA_TRACE(...) ::Nova::Debug::get_logger()->trace(__VA_ARGS__)
#ifdef _MSC_VER
#define NOVA_FUNC_NAME ::Nova::Internals::_format_func_name(__FUNCTION__)
#define NOVA_FUNC_NAME ::Nova::Internals::_format_func_name(__FUNCTION__)
#else
#define NOVA_FUNC_NAME ::Nova::Internals::_format_func_name(__PRETTY_FUNCTION__)
#define NOVA_FUNC_NAME ::Nova::Internals::_format_func_name(__PRETTY_FUNCTION__)
#endif
#define NOVA_AUTO_TRACE() NOVA_TRACE("{}()", NOVA_FUNC_NAME)