Various code improvements

This commit is contained in:
Wojtek Figat
2024-05-09 18:59:09 +02:00
parent f6aabf2d14
commit 44006dd533
7 changed files with 23 additions and 14 deletions

View File

@@ -196,6 +196,10 @@ protected:
class rcScopedTimer
{
public:
#if 1
// Disable timer functionality
inline rcScopedTimer(rcContext* ctx, const rcTimerLabel label) { }
#else
/// Constructs an instance and starts the timer.
/// @param[in] ctx The context to use.
/// @param[in] label The category of the timer.
@@ -209,6 +213,7 @@ private:
rcContext* const m_ctx;
const rcTimerLabel m_label;
#endif
};
/// Specifies a configuration to use when performing Recast builds.