feature/imgui-sdl
points-test
|
Last change
on this file since 98f06d9 was 98f06d9, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
|
Add support for ofstream to logger.cpp
|
-
Property mode
set to
100644
|
|
File size:
347 bytes
|
| Line | |
|---|
| 1 | #ifndef LOGGER_H
|
|---|
| 2 | #define LOGGER_H
|
|---|
| 3 |
|
|---|
| 4 | #include <string>
|
|---|
| 5 | #include <fstream>
|
|---|
| 6 |
|
|---|
| 7 | using namespace std;
|
|---|
| 8 |
|
|---|
| 9 | #define GL_LOG_FILE "gl.log"
|
|---|
| 10 | #define LOG_FILE "game.log"
|
|---|
| 11 |
|
|---|
| 12 | extern ofstream ofs;
|
|---|
| 13 |
|
|---|
| 14 | bool restart_gl_log();
|
|---|
| 15 | bool gl_log(const string message, ...);
|
|---|
| 16 | bool gl_log_err(const string message, ...);
|
|---|
| 17 |
|
|---|
| 18 | void open_log();
|
|---|
| 19 | ofstream& get_log();
|
|---|
| 20 | void close_log();
|
|---|
| 21 |
|
|---|
| 22 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.