Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Macros | Functions
macroLocation.hpp File Reference
#include <cstring>
#include <string>
+ Include dependency graph for macroLocation.hpp:

Go to the source code of this file.

Macros

#define __FILENAME__   __file_to_loc(__FILE__)
 
#define __LOC_PREFIX__   __loc_prefix(__FILE__, __LINE__)
 
#define __LOC_POSTFIX__   ("(" + __LOC_PREFIX__ + ")")
 

Functions

std::string __file_to_loc (const char *filename)
 
std::string __loc_prefix (const char *filename, int line)
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file macroLocation.hpp.

Macro Definition Documentation

◆ __FILENAME__

#define __FILENAME__   __file_to_loc(__FILE__)

Definition at line 31 of file macroLocation.hpp.

◆ __LOC_POSTFIX__

#define __LOC_POSTFIX__   ("(" + __LOC_PREFIX__ + ")")

Definition at line 34 of file macroLocation.hpp.

◆ __LOC_PREFIX__

#define __LOC_PREFIX__   __loc_prefix(__FILE__, __LINE__)

Definition at line 32 of file macroLocation.hpp.

Function Documentation

◆ __file_to_loc()

std::string __file_to_loc ( const char *  filename)
inline

Definition at line 22 of file macroLocation.hpp.

◆ __loc_prefix()

std::string __loc_prefix ( const char *  filename,
int  line 
)
inline

Definition at line 27 of file macroLocation.hpp.