8#ifndef _ZFI_ZFCoreLog_h_
9#define _ZFI_ZFCoreLog_h_
22 #define zfassert(b) assert(b)
24 #define zfassert(b) ((void)0)
33#define ZFASSERT_STATIC(cond, name) typedef char assert_failed_##name[(cond) ? 1 : -1];
44#define ZFCoreLogOutputCallbackDefault _ZFP_ZFCoreLogOutputCallbackDefault
75#define ZFCoreLog(format, ...) _ZFP_ZFCoreLog(ZFCallerInfoCreate(), zfstr(format, ##__VA_ARGS__))
80#define ZFCoreLogTrim(format, ...) _ZFP_ZFCoreLog(ZFCallerInfoEmpty(), zfstr(format, ##__VA_ARGS__))
85#define ZFCoreLogDetail(callerInfo, format, ...) _ZFP_ZFCoreLog(callerInfo, zfstr(format, ##__VA_ARGS__))
110#define ZFCoreCriticalError(errorHint) _ZFP_ZFCoreCriticalError(ZFCallerInfoCreate(), errorHint)
112#define ZFCoreCriticalErrorDetail(callerInfo, errorHint) _ZFP_ZFCoreCriticalError(callerInfo, errorHint)
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
void ZFCoreCriticalErrorCallbackRemove(ZFCoreCriticalErrorCallback callback)
see ZFCoreCriticalErrorCallback
ZFCoreLogOutputCallbackType ZFCoreLogOutputCallback(void)
get the output callback for ZFCoreLog
void ZFCoreCriticalErrorCallbackAdd(ZFCoreCriticalErrorCallback callback)
see ZFCoreCriticalErrorCallback
void(* ZFCoreLogOutputCallbackType)(const zfchar *s)
output callback for ZFCoreLog
Definition ZFCoreLog.h:39
void(* ZFCoreCriticalErrorCallback)(const ZFCallerInfo &callerInfo, zfstring &errorHint)
callback which would be called if ZFCoreCriticalError is called
Definition ZFCoreLog.h:91
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:200
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
util class to hold caller info
Definition ZFCallerInfo.h:63