quori_face/trace.hpp
Go to the documentation of this file.
1 #ifndef _QUORI_FACE_TRACE_HPP_
2 #define _QUORI_FACE_TRACE_HPP_
3 
4 #include <iostream>
5 #include <cstring>
6 
7 #define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
8 #define __COMPACT_PRETTY_FUNCTION__ quori_face::computeMethodName(__FUNCTION__, __PRETTY_FUNCTION__).c_str()
9 #ifdef QUORI_FACE_TRACING
10 #define QUORI_FACE_TRACE(stmt) \
11  ({ \
12  std::cout << __FILENAME__ << ":" << __LINE__ << " (" << __COMPACT_PRETTY_FUNCTION__ << "): " << #stmt << std::endl; \
13  stmt; \
14  })
15 #else
16 #define QUORI_FACE_TRACE(stmt) \
17  ({ \
18  stmt; \
19  })
20 #endif
21 
22 namespace quori_face
23 {
24  std::string computeMethodName(const std::string& function, const std::string& prettyFunction);
25 }
26 
27 #endif
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:790
quori_face
Definition: Cache.hpp:9
quori_face::computeMethodName
std::string computeMethodName(const std::string &function, const std::string &prettyFunction)
Definition: quori_face/trace.cpp:3


quori_face
Author(s):
autogenerated on Wed Mar 2 2022 00:53:20