Scarab  v1.6.2
Project 8 C++ Utility Library
Macros
macros.hh File Reference

Go to the source code of this file.

Macros

#define PASTE2(x, y)   x##y
 
#define PASTE(x, y)   PASTE2( x, y )
 
#define STRINGIFY(x)   #x
 
#define TOSTRING(x)   STRINGIFY(x)
 
#define __FILE_LINE__   __FILE__ "(" TOSTRING(__LINE__) ")"
 
#define __FILENAME_LINE__   (strrchr(__FILE__, '/') ? strrchr(__FILE_LINE__, '/') + 1 : __FILE_LINE__)
 
#define __FUNC__   ""
 

Macro Definition Documentation

#define __FILE_LINE__   __FILE__ "(" TOSTRING(__LINE__) ")"

Definition at line 16 of file macros.hh.

#define __FILENAME_LINE__   (strrchr(__FILE__, '/') ? strrchr(__FILE_LINE__, '/') + 1 : __FILE_LINE__)

Definition at line 17 of file macros.hh.

#define __FUNC__   ""

Definition at line 25 of file macros.hh.

#define PASTE (   x,
 
)    PASTE2( x, y )

Definition at line 12 of file macros.hh.

#define PASTE2 (   x,
 
)    x##y

Definition at line 11 of file macros.hh.

#define STRINGIFY (   x)    #x

Definition at line 14 of file macros.hh.

#define TOSTRING (   x)    STRINGIFY(x)

Definition at line 15 of file macros.hh.