ZFFramework
 
Loading...
Searching...
No Matches
ZFImpl_ZFLua_PathInfo.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFImpl_ZFLua_PathInfo_h_
7#define _ZFI_ZFImpl_ZFLua_PathInfo_h_
8
9#include "ZFImpl_ZFLua.h"
10
12
52 ZF_IN lua_State *L
53 , ZF_OUT zfstring &ret
54 , ZF_IN const ZFPathInfo &pathInfo
55 , ZF_IN_OPT zfbool localMode = zftrue
56 );
57
60
63
65#define ZFImpl_ZFLua_implPathInfo_DEFINE(luaFunc, luaFuncBody) \
66 ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL(ZFImpl_ZFLua_implPathInfo_##luaFunc, ZFLevelZFFrameworkNormal) { \
67 _ZFP_ZFImpl_ZFLua_implPathInfoRegister(zftext(ZFM_TOSTRING(luaFunc)), (luaFuncBody)); \
68 } \
69 ZF_GLOBAL_INITIALIZER_DESTROY(ZFImpl_ZFLua_implPathInfo_##luaFunc) { \
70 _ZFP_ZFImpl_ZFLua_implPathInfoUnregister(zftext(ZFM_TOSTRING(luaFunc))); \
71 } \
72 ZF_GLOBAL_INITIALIZER_END(ZFImpl_ZFLua_implPathInfo_##luaFunc)
73
74extern ZFLIB_ZFLua_impl void _ZFP_ZFImpl_ZFLua_implPathInfoRegister(
75 ZF_IN const zfstring &luaFuncName
76 , ZF_IN const zfchar *luaFuncBody
77 );
78extern ZFLIB_ZFLua_impl void _ZFP_ZFImpl_ZFLua_implPathInfoUnregister(ZF_IN const zfstring &luaFuncName);
79
81
82#endif // #ifndef _ZFI_ZFImpl_ZFLua_PathInfo_h_
83
_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
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
global header for lua impl
const ZFCoreArray< zfstring > & ZFImpl_ZFLua_implPathInfoList(void)
return luaFuncName list registered
void ZFImpl_ZFLua_implPathInfoSetup(lua_State *L, zfstring &ret, const ZFPathInfo &pathInfo, zfbool localMode=_ZFT_t_zftrue)
setup path info for lua execute
zfbool ZFImpl_ZFLua_implPathInfoExist(const zfchar *luaFuncName)
check whether luaFuncName registered
#define ZFLIB_ZFLua_impl
used to export symbols
Definition ZFImpl_ZFLua_impl.h:16
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
light weight array
Definition ZFCoreArray.h:331
path related info storage for impl, actual meaning of the info depends on impl
Definition ZFPathInfo.h:35