Skip to content

Commit

Permalink
Show error message if TRACY_MANUAL_LIFETIME is enabled without enable…
Browse files Browse the repository at this point in the history
…d TRACY_DELAYED_INIT
  • Loading branch information
foxtran committed Dec 27, 2024
1 parent 6452690 commit 5051db2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/client/TracyProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
#include "TracySysTrace.hpp"
#include "../tracy/TracyC.h"

#if defined TRACY_MANUAL_LIFETIME && !defined(TRACY_DELAYED_INIT)
# error "TRACY_MANUAL_LIFETIME requires enabled TRACY_DELAYED_INIT"
#endif

#ifdef TRACY_PORT
# ifndef TRACY_DATA_PORT
# define TRACY_DATA_PORT TRACY_PORT
Expand Down Expand Up @@ -4907,7 +4911,7 @@ TRACY_API void ___tracy_fiber_enter( const char* fiber ){ tracy::Profiler::Enter
TRACY_API void ___tracy_fiber_leave( void ){ tracy::Profiler::LeaveFiber(); }
#endif

# ifdef TRACY_MANUAL_LIFETIME
# if defined TRACY_MANUAL_LIFETIME && defined TRACY_DELAYED_INIT
TRACY_API void ___tracy_startup_profiler( void )
{
tracy::StartupProfiler();
Expand Down

0 comments on commit 5051db2

Please sign in to comment.