validate info stream

This commit is contained in:
Nikita Smith committed 2026-04-10 17:02:04 -07:00
1 parent c5dc7bee3e
commit b4bbc38ab2
6 files changed
+90 -37

No files matched your search

+13 -3
View File
@@ -114,9 +114,19 @@ t_run_fail_handler(void *raw_ctx)
internal T_RunResult
t_run(T_Run run)
{
T_RunCtx ctx = {0};
ctx.run = run;
os_safe_call(t_run_caller, t_run_fail_handler, &ctx);
T_RunCtx ctx = { .run = run };
B32 do_safe_call = 1;
#if OS_WINDOWS
if (IsDebuggerPresent()) {
do_safe_call = 0;
}
#endif
if (do_safe_call) {
os_safe_call(t_run_caller, t_run_fail_handler, &ctx);
} else {
t_run_caller(&ctx);
}
return ctx.result;
}