mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-23 09:10:51 +00:00
No line breaks in Lua locations.
This commit is contained in:
@@ -148,7 +148,11 @@ namespace detail
|
||||
static inline void LuaShortenSrc( char* dst, const char* src )
|
||||
{
|
||||
size_t l = std::min( (size_t)255, strlen( src ) );
|
||||
memcpy( dst, src, l );
|
||||
for( size_t i=0; i<l; i++ )
|
||||
{
|
||||
if( src[i] == '\n' ) dst[i] = ' ';
|
||||
else dst[i] = src[i];
|
||||
}
|
||||
dst[l] = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user