Skip to content

Commit adfa5b3

Browse files
committed
Fix Debug and Mixed compilation
1 parent 0dc29f0 commit adfa5b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/xrGame/debug_text_tree.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,24 @@ void log_text_tree(text_tree& tree);
7979

8080
} // namespace debug
8181

82-
IC xr_string __cdecl make_xrstr(LPCSTR format, ...)
82+
IC xr_string __cdecl make_xrstr(pcstr format, ...)
8383
{
8484
va_list args;
8585
va_start(args, format);
8686

8787
char temp[4096];
8888
vsprintf(temp, format, args);
8989

90+
va_end(args);
9091
return xr_string(temp);
9192
}
9293

9394
IC xr_string __cdecl make_xrstr(bool b) { return b ? "+" : "-"; }
9495
IC xr_string __cdecl make_xrstr(float f) { return make_xrstr("%f", f); }
9596
IC xr_string __cdecl make_xrstr(s32 d) { return make_xrstr("%i", d); }
9697
IC xr_string __cdecl make_xrstr(u32 d) { return make_xrstr("%u", d); }
98+
IC xr_string __cdecl make_xrstr(s64 d) { return make_xrstr("%i", d); }
99+
IC xr_string __cdecl make_xrstr(u64 d) { return make_xrstr("%u", d); }
97100
IC xr_string __cdecl make_xrstr(Fvector3 v) { return make_xrstr("[%f][%f][%f]", v.x, v.y, v.z); }
98101
IC xr_string __cdecl make_xrstr(const xr_string& s) { return s; }
99102
#endif // defined(AI_DEBUG_TEXT_TREE_H_INCLUDED)

0 commit comments

Comments
 (0)