Lib
QOLを高める
Namespaces | Functions
debug.cpp File Reference
#include "stdafx.h"
#include <windows.h>
#include "include/debug.h"
#include "include/util.h"

Go to the source code of this file.

Namespaces

 yappy
 
 yappy::debug
 Debug utilities.
 
 yappy::trace
 On memory fast logging.
 

Functions

bool yappy::debug::enableDebugOutput () noexcept
 Enables writing to OutputDebugString(). More...
 
bool yappy::debug::enableConsoleOutput () noexcept
 Shows a console window and enables writing to it. More...
 
bool yappy::debug::enableFileOutput (const wchar_t *fileName) noexcept
 Enables writing to a file. More...
 
void yappy::debug::shutdownDebugOutput () noexcept
 Flush buffers and free resources. More...
 
void yappy::debug::write (const wchar_t *str, bool newline=false) noexcept
 Write debug string. More...
 
void yappy::debug::writef (const wchar_t *fmt,...) noexcept
 Write debug message using format string like printf. More...
 
void yappy::debug::writef (const char *fmt,...) noexcept
 Write debug message using format string like printf. More...
 
void yappy::debug::writef_nonl (const wchar_t *fmt,...) noexcept
 Write debug message using format string like printf. (No new line) More...
 
void yappy::debug::writef_nonl (const char *fmt,...) noexcept
 Write debug message using format string like printf. (No new line) More...
 
void yappy::trace::initialize (size_t bufsize=1024 *1024)
 Initialize trace buffer. More...
 
void yappy::trace::output ()
 Output to a temporary file and open it with notepad. More...
 
void yappy::trace::write (const char *str)
 Write string to buffer. More...
 

Variable Documentation

LARGE_INTEGER counter

Definition at line 157 of file debug.cpp.

char msg[LINE_DATA_SIZE-sizeof(LARGE_INTEGER)-sizeof(uint32_t)]

Definition at line 159 of file debug.cpp.

uint32_t number

Definition at line 158 of file debug.cpp.