ZFFramework
Loading...
Searching...
No Matches
ZFCallerInfo.h File Reference

caller info utils More...

#include "ZFCoreTypeDef.h"

Go to the source code of this file.

Classes

class  ZFCallerInfo
 util class to hold caller info More...

Macros

#define ZF_CALLER_FILE_TO_NAME(path)
 convert file path to file name
#define ZF_CALLER_FILE_TO_NAME_T(ret, path)
 see ZF_CALLER_FILE_TO_NAME
#define ZF_CALLER_FILE_NAME
 similar to FILE in C++ world, except that don't include full path
#define ZF_CALLER_FILE
 same as FILE in C++ world
#define ZF_CALLER_FUNC
 same as FUNCTION in C++ world
#define ZF_CALLER_FUNC_TRIM
 short form of FUNCTION in C++ world
#define ZF_CALLER_LINE
 same as LINE in C++ world
#define ZFCallerInfoCreate()
 util macro to make ZFCallerInfo
#define ZFCallerInfoEmpty()
 empty caller info

Detailed Description

caller info utils

Macro Definition Documentation

◆ ZF_CALLER_FILE_TO_NAME

#define ZF_CALLER_FILE_TO_NAME ( path)

convert file path to file name

used by ZF_CALLER_FILE_NAME, you may use this function directly if you want
the return value would be deleted after line end, you should not save the value for future use, store it in a std::string if necessary

◆ ZF_CALLER_FILE_NAME

#define ZF_CALLER_FILE_NAME

similar to FILE in C++ world, except that don't include full path

note that this macro contains string convertion, take care of performance if necessary
the return value would be deleted after line end, you should not save the value for future use, store it in a zfstring if necessary