adding prefixes to source

They'll be removed on demand in libgen repo
This commit is contained in:
ed
2025-02-12 14:40:11 -05:00
parent aa5c1efb36
commit 0ab226f739
45 changed files with 5811 additions and 5820 deletions
+7 -7
View File
@@ -8,21 +8,21 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
MD_API void set_thread_name(String8 string);
MD_API void md_set_thread_name(MD_String8 string);
inline void
set_thread_namef(char *fmt, ...)
md_set_thread_namef(char *fmt, ...)
{
TempArena scratch = scratch_begin(0, 0);
MD_TempArena scratch = md_scratch_begin(0, 0);
va_list args;
va_start(args, fmt);
String8 string = str8fv(scratch.arena, fmt, args);
set_thread_name(string);
MD_String8 string = md_str8fv(scratch.arena, fmt, args);
md_set_thread_name(string);
va_end(args);
scratch_end(scratch);
}
#define thread_namef(...) (set_thread_namef(__VA_ARGS__))
#define thread_name(str) (set_thread_name(str))
#define md_thread_namef(...) (md_set_thread_namef(__VA_ARGS__))
#define md_thread_name(str) (md_set_thread_name(str))