コード例 #1
0
ファイル: LuaPBWrap.cs プロジェクト: grasswin/cellorigin
 static int GetPool(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         DescriptorPool o = LuaPB.GetPool();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
ファイル: LuaPBWrap.cs プロジェクト: grasswin/cellorigin
 static int RegisterFile(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         string arg0 = ToLua.CheckString(L, 1);
         LuaPB.RegisterFile(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
ファイル: LuaPBWrap.cs プロジェクト: grasswin/cellorigin
 static int TestStream(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         PBStreamWriter arg0 = (PBStreamWriter)ToLua.CheckObject(L, 1, typeof(PBStreamWriter));
         LuaPB.TestStream(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
ファイル: LuaPBWrap.cs プロジェクト: grasswin/cellorigin
 static int GetTestData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         string o = LuaPB.GetTestData();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #5
0
ファイル: LuaPBWrap.cs プロジェクト: grasswin/cellorigin
 static int TagSize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
         int o    = LuaPB.TagSize(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #6
0
ファイル: LuaPBWrap.cs プロジェクト: grasswin/cellorigin
 static int UInt64Size(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         string arg0 = ToLua.CheckString(L, 1);
         int    o    = LuaPB.UInt64Size(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }