comparison runtime/object.h @ 170:18598163e3ef

Add linked list implementation and cons operator
author Mike Pavone <pavone@retrodev.com>
date Tue, 13 Aug 2013 21:58:03 -0700
parents 2a9c6eed0c70
children 75dc7161c1ca
comparison
equal deleted inserted replaced
153:075b1e71feff 170:18598163e3ef
35 #define ccall(clos, num_args, ...) (((lambda *)clos)->func(((lambda *)clos)->env, num_args,##__VA_ARGS__)) 35 #define ccall(clos, num_args, ...) (((lambda *)clos)->func(((lambda *)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_lambda(void * env, closure_func func); 38 object * make_lambda(void * env, closure_func func);
39 object * make_array(uint32_t num_els, ...); 39 object * make_array(uint32_t num_els, ...);
40 object * make_list(uint32_t num_els, ...);
40 41
41 #endif //OBJECT_H_ 42 #endif //OBJECT_H_