input basics
This commit is contained in:
parent
52090853da
commit
cf51ab71a2
17 changed files with 459 additions and 19 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "../defines.hpp"
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
void Debug::log(LogLevel level, const char* fmt, ...) {
|
||||
va_list args;
|
||||
|
|
@ -37,5 +38,8 @@ void Debug::log(LogLevel level, const char* fmt, ...) {
|
|||
|
||||
ofs.close();
|
||||
|
||||
// log it to the stdout too.
|
||||
std::cout << buf << "\n";
|
||||
|
||||
va_end(args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue