Skip to content

Instantly share code, notes, and snippets.

@xyzzy-17-638
Created March 2, 2012 20:35
Show Gist options
  • Save xyzzy-17-638/1961102 to your computer and use it in GitHub Desktop.
Save xyzzy-17-638/1961102 to your computer and use it in GitHub Desktop.
OutputDebugStringを行う
//使い方の例 : DebugOut("%d %s\n", __LINE__, __FUNCTION__);
struct DebugOut {
DebugOut(const char* fmt, ...) {
va_list args;
va_start(args, fmt);
char buf[1024];
vsprintf(buf, fmt, args);
OutputDebugStringA(buf);
va_end(args);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment