Created
March 2, 2012 20:35
-
-
Save xyzzy-17-638/1961102 to your computer and use it in GitHub Desktop.
OutputDebugStringを行う
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//使い方の例 : 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