path info impl More...
#include "ZFImpl_ZFLua.h"
Go to the source code of this file.
Macros | |
#define | ZFImpl_ZFLua_implPathInfo_DEFINE(luaFunc, luaFuncBody) |
Functions | |
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 | |
const ZFCoreArray< zfstring > & | ZFImpl_ZFLua_implPathInfoList (void) |
return luaFuncName list registered | |
path info impl
#define ZFImpl_ZFLua_implPathInfo_DEFINE | ( | luaFunc, | |
luaFuncBody ) |
|
extern |
setup path info for lua execute
how it works:
lua does not have any way to append additional user data to chunk, so we hack it by appending extra code before each ZFLuaExecute, to setup some path info related datas, to return a ZFPathInfo
impl may use ZFImpl_ZFLua_implPathInfo_DEFINE to append extra contents, the final extra code may be something look like this: