comparison runtime/object.h @ 38:e7be612fd3ae

Very basic array support
author Mike Pavone <pavone@retrodev.com>
date Tue, 10 Jul 2012 23:09:44 -0700
parents bf5e88f6419d
children 2a9c6eed0c70
comparison
equal deleted inserted replaced
37:a6bf4869fcbe 38:e7be612fd3ae
34 object * mcall(uint32_t method_id, uint32_t num_args, object * self, ...); 34 object * mcall(uint32_t method_id, uint32_t num_args, object * self, ...);
35 #define ccall(clos, num_args, ...) (((closure *)clos)->func(((closure *)clos)->env, num_args,##__VA_ARGS__)) 35 #define ccall(clos, num_args, ...) (((closure *)clos)->func(((closure *)clos)->env, num_args,##__VA_ARGS__))
36 36
37 object * make_object(obj_meta * meta, void * parent, int num_props, ...); 37 object * make_object(obj_meta * meta, void * parent, int num_props, ...);
38 object * make_closure(void * env, closure_func func); 38 object * make_closure(void * env, closure_func func);
39 object * make_array(uint32_t num_els, ...);
39 40
40 #endif //OBJECT_H_ 41 #endif //OBJECT_H_