Added spec:commit task to commit changes to spec/ruby sources.
[rbx.git] / shotgun / lib / tuple.h
blob539ef817d9e643e4d35c9d69f107282df854791e
1 #define tuple_new(st, size) (NEW_OBJECT(st->global->tuple, size))
2 #define tuple_fields(state, tup) NUM_FIELDS(tup)
3 #define tuple_at(state, tup, idx) NTH_FIELD(tup, idx)
4 #define tuple_put(state, tup, idx, val) SET_FIELD(tup, idx, val)
5 OBJECT tuple_new2(STATE, int n, ...);
6 OBJECT tuple_enlarge(STATE, OBJECT tup, int inc);
7 OBJECT tuple_dup(STATE, OBJECT tup);