ZFFramework
 
Loading...
Searching...
No Matches
ZFLuaState.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFLuaState_h_
7#define _ZFI_ZFLuaState_h_
8
9#include "ZFLuaDef.h"
11
36
39 , ZFMP_IN(void *, L)
40 )
41
44
47 , ZFMP_OUT(ZFCoreArray<void *> &, luaStateList)
48 , ZFMP_OUT(ZFCoreArray<ZFThread *> &, threadList)
49 )
50
55 , ZFMP_IN(void *, L)
56 )
57
60 , ZFMP_IN(void *, L)
61 )
64 , ZFMP_IN(void *, L)
65 )
66
75ZFEVENT_GLOBAL(ZFLIB_ZFLua, LuaStateOnAttach)
83ZFEVENT_GLOBAL(ZFLIB_ZFLua, LuaStateOnDetach)
85
87#endif // #ifndef _ZFI_ZFLuaState_h_
88
global header for ZFLua module
#define ZFLIB_ZFLua
used to export symbols
Definition ZFLuaDef.h:14
void * ZFLuaStateOpen()
create new lua state, see ZFLuaState
void ZFLuaStateListForAllThread(ZFCoreArray< void * > &luaStateList, ZFCoreArray< ZFThread * > &threadList)
get lua state list for all thread, use with caution, see ZFLuaState
void ZFLuaStateAttach(void *L)
attach existing lua state to current thread, see ZFLuaState
void ZFLuaStateDetach(void *L)
detach lua state from current thread, see ZFLuaState
void * ZFLuaState()
return lua state for current thread, auto create and attach if no state attached to current thread
void * ZFLuaStateCheck()
try get lua state for current thread, or return null if none
void ZFLuaStateClose(void *L)
close lua state, see ZFLuaState
ZFCoreArray< void * > ZFLuaStateList()
get lua state list for current thread, see ZFLuaState
void ZFLuaStateChange(void *L)
change builtin lua state for current thread, see ZFLuaState
#define ZFMP_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:111
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:493
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_END(NameSpace)
end namespace
Definition ZFNamespace.h:60
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZF_NAMESPACE_BEGIN(NameSpace)
begin namespace
Definition ZFNamespace.h:40
#define ZFEVENT_GLOBAL(ZFLIB_, YourEvent)
declare a observer event in global scope, see ZFEVENT
Definition ZFObjectObserver.h:369
light weight array
Definition ZFCoreArray.h:331
thread utility
Definition ZFThread.h:23
Definition ZFApp.h:13