22inline std::string __file_to_loc(
const char *filename) {
24 std::strstr(filename,
"/src/") ? std::strstr(filename,
"/src/") + 1 : filename);
27inline std::string __loc_prefix(
const char *filename,
int line) {
28 return __file_to_loc(filename) +
":" + std::to_string(line);
31#define __FILENAME__ __file_to_loc(__FILE__)
32#define __LOC_PREFIX__ __loc_prefix(__FILE__, __LINE__)
34#define __LOC_POSTFIX__ ("(" + __LOC_PREFIX__ + ")")