static int WriteFloat(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.LuaBuffer obj = (Framework.LuaBuffer)ToLua.CheckObject <Framework.LuaBuffer>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.WriteFloat(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int WriteFloat(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaBuffer.WriteFloat"); #endif try { ToLua.CheckArgsCount(L, 2); Framework.LuaBuffer obj = (Framework.LuaBuffer)ToLua.CheckObject <Framework.LuaBuffer>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.WriteFloat(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }