MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / FastMsg

Function FastMsg

ogsr_engine/xrGame/script_engine_help.cpp:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static void FastMsg(LPCSTR format, ...)
37{
38 static u32 saldo = 0;
39 va_list mark;
40 va_start(mark, format);
41 _vsnprintf(line_buf, sizeof(line_buf) - 1, format, mark);
42
43 line_buf[sizeof(line_buf) - 1] = 0;
44 va_end(mark);
45 dumper->w_printf("%s\r\n", line_buf);
46 saldo += xr_strlen(line_buf);
47 if (saldo >= 32768)
48 {
49 saldo = 0;
50 dumper->flush();
51 }
52}
53
54static luabind::internal_string to_string(luabind::object const& o)
55{

Callers 4

print_classFunction · 0.85
print_free_functionsFunction · 0.85
catchFunction · 0.85

Calls 3

w_printfMethod · 0.80
xr_strlenFunction · 0.50
flushMethod · 0.45

Tested by

no test coverage detected