Make forwarding functions more compact.

This commit is contained in:
Bartosz Taudul 2019-07-03 18:05:38 +02:00
parent 94b470ba66
commit e26ab8e9f6

View File

@ -2320,70 +2320,19 @@ void ___tracy_emit_zone_name( TracyCZoneCtx ctx, const char* txt, size_t size )
}
}
void ___tracy_emit_memory_alloc( const void* ptr, size_t size )
{
tracy::Profiler::MemAlloc( ptr, size );
}
void ___tracy_emit_memory_alloc_callstack( const void* ptr, size_t size, int depth )
{
tracy::Profiler::MemAllocCallstack( ptr, size, depth );
}
void ___tracy_emit_memory_free( const void* ptr )
{
tracy::Profiler::MemFree( ptr );
}
void ___tracy_emit_memory_free_callstack( const void* ptr, int depth )
{
tracy::Profiler::MemFreeCallstack( ptr, depth );
}
void ___tracy_emit_frame_mark( const char* name )
{
tracy::Profiler::SendFrameMark( name );
}
void ___tracy_emit_frame_mark_start( const char* name )
{
tracy::Profiler::SendFrameMark( name, tracy::QueueType::FrameMarkMsgStart );
}
void ___tracy_emit_frame_mark_end( const char* name )
{
tracy::Profiler::SendFrameMark( name, tracy::QueueType::FrameMarkMsgEnd );
}
void ___tracy_emit_frame_image( void* image, uint16_t w, uint16_t h, uint8_t offset, int flip )
{
tracy::Profiler::SendFrameImage( image, w, h, offset, flip );
}
void ___tracy_emit_plot( const char* name, double val )
{
tracy::Profiler::PlotData( name, val );
}
void ___tracy_emit_message( const char* txt, size_t size )
{
tracy::Profiler::Message( txt, size );
}
void ___tracy_emit_messageL( const char* txt )
{
tracy::Profiler::Message( txt );
}
void ___tracy_emit_messageC( const char* txt, size_t size, uint32_t color )
{
tracy::Profiler::MessageColor( txt, size, color );
}
void ___tracy_emit_messageLC( const char* txt, uint32_t color )
{
tracy::Profiler::MessageColor( txt, color );
}
void ___tracy_emit_memory_alloc( const void* ptr, size_t size ) { tracy::Profiler::MemAlloc( ptr, size ); }
void ___tracy_emit_memory_alloc_callstack( const void* ptr, size_t size, int depth ) { tracy::Profiler::MemAllocCallstack( ptr, size, depth ); }
void ___tracy_emit_memory_free( const void* ptr ) { tracy::Profiler::MemFree( ptr ); }
void ___tracy_emit_memory_free_callstack( const void* ptr, int depth ) { tracy::Profiler::MemFreeCallstack( ptr, depth ); }
void ___tracy_emit_frame_mark( const char* name ) { tracy::Profiler::SendFrameMark( name ); }
void ___tracy_emit_frame_mark_start( const char* name ) { tracy::Profiler::SendFrameMark( name, tracy::QueueType::FrameMarkMsgStart ); }
void ___tracy_emit_frame_mark_end( const char* name ) { tracy::Profiler::SendFrameMark( name, tracy::QueueType::FrameMarkMsgEnd ); }
void ___tracy_emit_frame_image( void* image, uint16_t w, uint16_t h, uint8_t offset, int flip ) { tracy::Profiler::SendFrameImage( image, w, h, offset, flip ); }
void ___tracy_emit_plot( const char* name, double val ) { tracy::Profiler::PlotData( name, val ); }
void ___tracy_emit_message( const char* txt, size_t size ) { tracy::Profiler::Message( txt, size ); }
void ___tracy_emit_messageL( const char* txt ) { tracy::Profiler::Message( txt ); }
void ___tracy_emit_messageC( const char* txt, size_t size, uint32_t color ) { tracy::Profiler::MessageColor( txt, size, color ); }
void ___tracy_emit_messageLC( const char* txt, uint32_t color ) { tracy::Profiler::MessageColor( txt, color ); }
#ifdef __cplusplus
}