mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Prevent move and copy of ScopedZone.
This commit is contained in:
parent
9f00bde629
commit
24f25751ce
@ -16,6 +16,11 @@ namespace tracy
|
|||||||
class ScopedZone
|
class ScopedZone
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
ScopedZone( const ScopedZone& ) = delete;
|
||||||
|
ScopedZone( ScopedZone&& ) = delete;
|
||||||
|
ScopedZone& operator=( const ScopedZone& ) = delete;
|
||||||
|
ScopedZone& operator=( ScopedZone&& ) = delete;
|
||||||
|
|
||||||
tracy_force_inline ScopedZone( const SourceLocationData* srcloc, bool is_active = true )
|
tracy_force_inline ScopedZone( const SourceLocationData* srcloc, bool is_active = true )
|
||||||
#ifdef TRACY_ON_DEMAND
|
#ifdef TRACY_ON_DEMAND
|
||||||
: m_active( is_active && GetProfiler().IsConnected() )
|
: m_active( is_active && GetProfiler().IsConnected() )
|
||||||
|
Loading…
Reference in New Issue
Block a user