Example #1
0
        public static int LinyeeUDump(LinyeeState L, Proto f, ly_Writer w, object data, int strip)
        {
            DumpState D = new DumpState();

            D.L      = L;
            D.writer = w;
            D.data   = data;
            D.strip  = strip;
            D.status = 0;
            DumpHeader(D);
            DumpFunction(f, null, D);
            return(D.status);
        }
Example #2
0
        public static int LinyeeDump(LinyeeState L, ly_Writer writer, object data)
        {
            int    status;
            TValue o;

            LinyeeLock(L);
            CheckNElements(L, 1);
            o = L.top - 1;
            if (IsLfunction(o))
            {
                status = LinyeeUDump(L, CLValue(o).l.p, writer, data, 0);
            }
            else
            {
                status = 1;
            }
            LinyeeUnlock(L);
            return(status);
        }