CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
debug.h File Reference
#include <filesystem>
#include <fstream>
#include <iostream>
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_LOG(msg)
 

Macro Definition Documentation

◆ DEBUG_LOG

#define DEBUG_LOG (   msg)
Value:
do \
{ \
static std::ofstream logFile("cardgame_log.txt", std::ios::out | std::ios::app); \
if (logFile.is_open()) \
{ \
logFile << "[LOG] " << std::filesystem::path(__FILE__).filename().string() << ":" \
<< __LINE__ << " " << msg << std::endl; \
} \
} while (0)