Use preprocessor to exclude platform specify code instead of cmake
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// clang-format off
|
||||
#ifndef NOVA_API
|
||||
#ifdef NOVA_WINDOWS
|
||||
#ifdef NOVA_DLL_EXPORT
|
||||
@@ -23,3 +24,4 @@
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user