ZeroErr
dbg.h File Reference
#include "zeroerr/internal/config.h"
#include "zeroerr/color.h"
#include "zeroerr/print.h"
#include <iostream>
#include <tuple>
Include dependency graph for dbg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  zeroerr::last< T1, T >
 
struct  zeroerr::last< T1 >
 

Namespaces

 zeroerr
 

Macros

#define dbg(...)   zeroerr::DebugExpr(__FILE__, __LINE__, __func__, #__VA_ARGS__, __VA_ARGS__)
 

Functions

template<typename... Args>
auto zeroerr::get_last (Args &&... args) -> typename last< Args... >::type
 get_last is a function to get the last argument of a variadic template. It is used by DebugExpr. More...
 
template<typename... T>
auto zeroerr::DebugExpr (const char *file, unsigned line, const char *func, const char *exprs, T... t) -> typename last< T... >::type
 DebugExpr is a function to print any type of variable with its type name. It is used by dbg macro. More...
 

Macro Definition Documentation

◆ dbg

#define dbg (   ...)    zeroerr::DebugExpr(__FILE__, __LINE__, __func__, #__VA_ARGS__, __VA_ARGS__)