forked from chaehoon/KickItUp
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.cpp
More file actions
Latest commit
33 lines (27 loc) · 467 Bytes
/
Copy pathLog.cpp
File metadata and controls
33 lines (27 loc) · 467 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include"Log.h"
#include<cstdarg>
#include<SDL_log.h>
#include<iostream>
#defineLOG_FILE"log.txt"
Log::Log(void)
{
}
Log::~Log(void)
{
}
voidLog::log(constchar* format, ...)
{
char buf[1024];
va_list args;
va_start(args, format);
SDL_LogMessageV(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, format, args);
va_end(args);
/*
if (fp) {
va_list args;
va_start(args, format);
vfprintf(fp, format, args);
va_end(args);
}
*/
}