Making progress on util::dprintf
This commit is contained in:
@@ -227,6 +227,23 @@ struct EngineWrapper {
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Hook dprintf
|
||||
//
|
||||
// The engine provides a function 'util::dprintf' to print debugging
|
||||
// messages. It does not use stderr or std::cerr, because in windows, those
|
||||
// go to the bit-bucket.
|
||||
//
|
||||
// This routine hooks dprintf to change where the output goes. Ideally,
|
||||
// the intent is to send the output somewhere easily accessible, like the
|
||||
// visual studio debug output log, or the unreal editor output log, or
|
||||
// something like that. Or, better yet, to all those places at once.
|
||||
//
|
||||
// The hook function will get passed one line of output at a time. The line
|
||||
// will only contain printable characters. The line will not contain a
|
||||
// newline - the newline is implied.
|
||||
//
|
||||
void (*hook_dprintf)(void (*func)(const char *oneline));
|
||||
|
||||
// Restore the wrapper to its initial blank state.
|
||||
//
|
||||
// Note that the wrapper must have already been initialized using
|
||||
|
||||
Reference in New Issue
Block a user