MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE_VARARG gds__trace_printer

Function API_ROUTINE_VARARG gds__trace_printer

src/yvalve/gds.cpp:4077–4090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4075
4076
4077void API_ROUTINE_VARARG gds__trace_printer(void* /*arg*/, SSHORT offset, const TEXT* line)
4078{
4079 // Assume that line is not too long
4080 char buffer[PRETTY_BUFFER_SIZE + 10];
4081 char* p = buffer;
4082 gds__ulstr(p, offset, 4, ' ');
4083 p += strlen(p);
4084 *p++ = ' ';
4085 fb_utils::copy_terminate(p, line, PRETTY_BUFFER_SIZE + 1);
4086 p += strlen(p);
4087 *p++ = '\n';
4088 *p = 0;
4089 gds__trace_raw(buffer);
4090}
4091
4092#undef gds__alloc
4093

Callers

nothing calls this directly

Calls 2

gds__ulstrFunction · 0.85
copy_terminateFunction · 0.50

Tested by

no test coverage detected