LuaInterface.LuaDLL.lua_setglobal C# (CSharp) Method

lua_setglobal() private method

private lua_setglobal ( IntPtr luaState, string name ) : void
luaState System.IntPtr
name string
return void
        public static extern void lua_setglobal(IntPtr luaState, string name);

Usage Example

示例#1
0
 /*
  * Registers the global functions used by LuaInterface
  */
 private void setGlobalFunctions(IntPtr luaState)
 {
     LuaDLL.lua_pushstdcallcfunction(luaState, metaFunctions.indexFunction);
     LuaDLL.lua_setglobal(luaState, "get_object_member");
     LuaDLL.lua_pushstdcallcfunction(luaState, importTypeFunction);
     LuaDLL.lua_setglobal(luaState, "import_type");
     LuaDLL.lua_pushstdcallcfunction(luaState, loadAssemblyFunction);
     LuaDLL.lua_setglobal(luaState, "load_assembly");
     LuaDLL.lua_pushstdcallcfunction(luaState, registerTableFunction);
     LuaDLL.lua_setglobal(luaState, "make_object");
     LuaDLL.lua_pushstdcallcfunction(luaState, unregisterTableFunction);
     LuaDLL.lua_setglobal(luaState, "free_object");
     LuaDLL.lua_pushstdcallcfunction(luaState, getMethodSigFunction);
     LuaDLL.lua_setglobal(luaState, "get_method_bysig");
     LuaDLL.lua_pushstdcallcfunction(luaState, getConstructorSigFunction);
     LuaDLL.lua_setglobal(luaState, "get_constructor_bysig");
 }
All Usage Examples Of LuaInterface.LuaDLL::lua_setglobal
LuaDLL