static int AddBeforeSelf(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Newtonsoft.Json.Linq.JToken obj = (Newtonsoft.Json.Linq.JToken)ToLua.CheckObject(L, 1, typeof(Newtonsoft.Json.Linq.JToken)); object arg0 = ToLua.ToVarObject(L, 2); obj.AddBeforeSelf(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }