#include <argos3/core/config.h>
#include <iomanip>
#include <string>
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <argos3/core/utility/logging/argos_colored_text.h>
Go to the source code of this file.
|
| | argos |
| | The namespace containing all the ARGoS related code.
|
| |
|
| #define | DEBUG(MSG, ...) { fprintf(stderr, "[DEBUG] "); for(size_t ARGOS_I = 0; ARGOS_I < DEBUG_INDENTATION; ++ARGOS_I) fprintf(stderr, " "); fprintf(stderr, MSG, ##__VA_ARGS__); } |
| |
| #define | DEBUG_FUNCTION_ENTER { ++DEBUG_INDENTATION; DEBUG("%s - START\n", __PRETTY_FUNCTION__ ); } |
| |
| #define | DEBUG_FUNCTION_EXIT { DEBUG("%s - END\n", __PRETTY_FUNCTION__ ); --DEBUG_INDENTATION; } |
| |
| #define | TRACE(LINE) LINE; DEBUG(#LINE "\n"); |
| |
| #define | RLOG LOG << "[" << GetId() << "] " |
| |
| #define | RLOGERR LOGERR << "[" << GetId() << "] " |
| |
◆ DEBUG
| #define DEBUG |
( |
|
MSG, |
|
|
|
... |
|
) |
| { fprintf(stderr, "[DEBUG] "); for(size_t ARGOS_I = 0; ARGOS_I < DEBUG_INDENTATION; ++ARGOS_I) fprintf(stderr, " "); fprintf(stderr, MSG, ##__VA_ARGS__); } |
◆ DEBUG_FUNCTION_ENTER
| #define DEBUG_FUNCTION_ENTER { ++DEBUG_INDENTATION; DEBUG("%s - START\n", __PRETTY_FUNCTION__ ); } |
◆ DEBUG_FUNCTION_EXIT
| #define DEBUG_FUNCTION_EXIT { DEBUG("%s - END\n", __PRETTY_FUNCTION__ ); --DEBUG_INDENTATION; } |
◆ RLOG
| #define RLOG LOG << "[" << GetId() << "] " |
◆ RLOGERR
| #define RLOGERR LOGERR << "[" << GetId() << "] " |
◆ TRACE
| #define TRACE |
( |
|
LINE | ) |
LINE; DEBUG(#LINE "\n"); |