ZFFramework
 
Loading...
Searching...
No Matches
ZFLuaDef.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFLuaDef_h_
7#define _ZFI_ZFLuaDef_h_
8
9#include "ZFCore.h"
11
13#ifndef ZFLIB_ZFLua
14 #define ZFLIB_ZFLua ZF_ENV_IMPORT
15#endif
16
17// ============================================================
25
26extern ZFLIB_ZFLua void _ZFP_ZFLuaErrorOccurred(
27 ZF_IN const ZFCallerInfo &callerInfo
28 , ZF_IN const zfchar *text
29 );
33#define ZFLuaErrorOccurredTrim(fmt, ...) \
34 ZFLuaErrorOccurredDetail(ZFCallerInfoEmpty(), fmt, ##__VA_ARGS__)
35
38#define ZFLuaErrorOccurred(fmt, ...) \
39 ZFLuaErrorOccurredDetail(ZFCallerInfoCreate(), fmt, ##__VA_ARGS__)
40
43#define ZFLuaErrorOccurredDetail(callerInfo, fmt, ...) \
44 _ZFP_ZFLuaErrorOccurred(callerInfo, zfstr(fmt, ##__VA_ARGS__))
45
47#endif // #ifndef _ZFI_ZFLuaDef_h_
48
header file for ZFCore module
_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:180
ZFCoreArray< ZFOutput > & ZFLuaErrorCallbacks()
callbacks that would be called when lua related error occurred, for debug use only
#define ZFLIB_ZFLua
used to export symbols
Definition ZFLuaDef.h:14
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:493
#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
light weight array
Definition ZFCoreArray.h:331