Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-11-15 22:07:01 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-11-15 22:07:01 +0300
commita15e83e5900dc7733796b6fd42c1b421d58d0f5b (patch)
tree7bf92e37745ca299a126888afb4e5c9a31236402 /TracyLua.hpp
parent49e3bc8b21ea603b63ce9cbbb4af5ea8244a31bc (diff)
Use default zone coloring for Lua zones.
Diffstat (limited to 'TracyLua.hpp')
-rw-r--r--TracyLua.hpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/TracyLua.hpp b/TracyLua.hpp
index 0e87f01e..b63e09b0 100644
--- a/TracyLua.hpp
+++ b/TracyLua.hpp
@@ -198,8 +198,6 @@ static inline int LuaZoneBeginS( lua_State* L )
if( !GetLuaZoneState().active ) return 0;
#endif
- const uint32_t color = Color::DeepSkyBlue3;
-
lua_Debug dbg;
lua_getstack( L, 1, &dbg );
lua_getinfo( L, "Snl", &dbg );
@@ -220,7 +218,7 @@ static inline int LuaZoneBeginS( lua_State* L )
const uint32_t sz = uint32_t( 4 + 4 + 4 + fsz + 1 + ssz + 1 );
auto ptr = (char*)tracy_malloc( sz );
memcpy( ptr, &sz, 4 );
- memcpy( ptr + 4, &color, 4 );
+ memset( ptr + 4, 0, 4 );
memcpy( ptr + 8, &line, 4 );
memcpy( ptr + 12, func, fsz+1 );
memcpy( ptr + 12 + fsz + 1, dbg.source, ssz + 1 );
@@ -253,8 +251,6 @@ static inline int LuaZoneBeginNS( lua_State* L )
if( !GetLuaZoneState().active ) return 0;
#endif
- const uint32_t color = Color::DeepSkyBlue3;
-
lua_Debug dbg;
lua_getstack( L, 1, &dbg );
lua_getinfo( L, "Snl", &dbg );
@@ -278,7 +274,7 @@ static inline int LuaZoneBeginNS( lua_State* L )
const uint32_t sz = uint32_t( 4 + 4 + 4 + fsz + 1 + ssz + 1 + nsz );
auto ptr = (char*)tracy_malloc( sz );
memcpy( ptr, &sz, 4 );
- memcpy( ptr + 4, &color, 4 );
+ memset( ptr + 4, 0, 4 );
memcpy( ptr + 8, &line, 4 );
memcpy( ptr + 12, func, fsz+1 );
memcpy( ptr + 12 + fsz + 1, dbg.source, ssz + 1 );
@@ -316,8 +312,6 @@ static inline int LuaZoneBegin( lua_State* L )
if( !GetLuaZoneState().active ) return 0;
#endif
- const uint32_t color = Color::DeepSkyBlue3;
-
lua_Debug dbg;
lua_getstack( L, 1, &dbg );
lua_getinfo( L, "Snl", &dbg );
@@ -338,7 +332,7 @@ static inline int LuaZoneBegin( lua_State* L )
const uint32_t sz = uint32_t( 4 + 4 + 4 + fsz + 1 + ssz + 1 );
auto ptr = (char*)tracy_malloc( sz );
memcpy( ptr, &sz, 4 );
- memcpy( ptr + 4, &color, 4 );
+ memset( ptr + 4, 0, 4 );
memcpy( ptr + 8, &line, 4 );
memcpy( ptr + 12, func, fsz+1 );
memcpy( ptr + 12 + fsz + 1, dbg.source, ssz + 1 );
@@ -367,8 +361,6 @@ static inline int LuaZoneBeginN( lua_State* L )
if( !GetLuaZoneState().active ) return 0;
#endif
- const uint32_t color = Color::DeepSkyBlue3;
-
lua_Debug dbg;
lua_getstack( L, 1, &dbg );
lua_getinfo( L, "Snl", &dbg );
@@ -392,7 +384,7 @@ static inline int LuaZoneBeginN( lua_State* L )
const uint32_t sz = uint32_t( 4 + 4 + 4 + fsz + 1 + ssz + 1 + nsz );
auto ptr = (char*)tracy_malloc( sz );
memcpy( ptr, &sz, 4 );
- memcpy( ptr + 4, &color, 4 );
+ memset( ptr + 4, 0, 4 );
memcpy( ptr + 8, &line, 4 );
memcpy( ptr + 12, func, fsz+1 );
memcpy( ptr + 12 + fsz + 1, dbg.source, ssz + 1 );