Minor fixes
This commit is contained in:
@@ -32,9 +32,9 @@ namespace Nz
|
||||
|
||||
thread_local ErrorModeFlags s_flags;
|
||||
thread_local std::string s_lastError = "no error";
|
||||
thread_local std::string_view s_lastErrorFunction;
|
||||
thread_local std::string_view s_lastErrorFile;
|
||||
thread_local unsigned int s_lastErrorLine = 0;
|
||||
thread_local std::string_view s_lastErrorFunction = {};
|
||||
thread_local std::string_view s_lastErrorFile = {};
|
||||
thread_local constinit unsigned int s_lastErrorLine = 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Nz::PlatformImpl
|
||||
|
||||
return std::string(&name[0]);
|
||||
#else
|
||||
NazaraUnused(threadHandle)
|
||||
return "<unsupported>";
|
||||
#endif
|
||||
}
|
||||
@@ -40,6 +41,7 @@ namespace Nz::PlatformImpl
|
||||
#elif defined(__APPLE__)
|
||||
::pthread_setname_np(threadName);
|
||||
#else
|
||||
NazaraUnused(threadName)
|
||||
NazaraWarning("setting current thread name is not supported on this platform");
|
||||
#endif
|
||||
}
|
||||
@@ -49,8 +51,12 @@ namespace Nz::PlatformImpl
|
||||
#if defined(__linux__) || defined(__FreeBSD__)
|
||||
::pthread_setname_np(threadHandle, threadName);
|
||||
#elif defined(__APPLE__)
|
||||
NazaraUnused(threadHandle)
|
||||
NazaraUnused(threadName)
|
||||
NazaraWarning("only current thread name can be set on MacOS X");
|
||||
#else
|
||||
NazaraUnused(threadHandle)
|
||||
NazaraUnused(threadName)
|
||||
NazaraWarning("setting a thread name is not supported on this platform");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -101,6 +101,8 @@ NAZARA_WARNING_MSVC_DISABLE(6320 6322)
|
||||
NAZARA_WARNING_POP()
|
||||
|
||||
#else
|
||||
NazaraUnused(threadId)
|
||||
NazaraUnused(threadName)
|
||||
NazaraWarning("ThreadName exception is only supported with MSVC");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace Nz::GL
|
||||
{
|
||||
thread_local const Context* s_currentGLContext = nullptr;
|
||||
thread_local constinit const Context* s_currentGLContext = nullptr;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace Nz
|
||||
ScrollbarWidget::ScrollbarWidget(BaseWidget* parent, ScrollbarOrientation orientation) :
|
||||
BaseWidget(parent),
|
||||
m_orientation(orientation),
|
||||
m_isGrabbed(false),
|
||||
m_maximumValue(1.f),
|
||||
m_minimumValue(0.f),
|
||||
m_step(0.5f),
|
||||
|
||||
Reference in New Issue
Block a user