Beispiel #1
0
        internal static int LuaImport(IntPtr L)
        {
            LuaModule luaModule = Instance;

            string fileName = LuaDLL.lua_tostring(L, 1);
            var    obj      = luaModule.Import(fileName);

            LuaObject.pushValue(L, obj);
            LuaObject.pushValue(L, true);
            return(2);
        }
Beispiel #2
0
        internal static int LuaImport(IntPtr L)
        {
            LuaModule luaModule = Instance;

            string fileName = Lua.lua_tostring(L, 1);
            var    obj      = luaModule.Import(fileName);

            ObjectTranslator ot = ObjectTranslatorPool.Instance.Find(L);

            ot.PushAny(L, obj);
            ot.PushAny(L, true);

            return(2);
        }