2014-05-18から1日間の記事一覧

ログ出力部品

#include <stdio.h> #include <stdarg.h> #include <string.h> #define curFileName (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) #define debug(...) logging("[DEBUG]", curFileName, __LINE__, __VA_ARGS__); #define info(...) logging("[INFO]", curFileName</string.h></stdarg.h></stdio.h>…