comparison runtime/object.h @ 40:789a146a48e1

Started adding support for naked values in user defined objects
author Mike Pavone <pavone@retrodev.com>
date Fri, 09 Oct 2009 01:01:26 -0400
parents 495dddadd058
children 1b86a1ee500a
comparison
equal deleted inserted replaced
39:3d92bc1352c2 40:789a146a48e1
75 void add_getter(blueprint * bp, uint32_t fieldid, rhope_func impl); 75 void add_getter(blueprint * bp, uint32_t fieldid, rhope_func impl);
76 void add_setter(blueprint * bp, uint32_t fieldid, rhope_func impl); 76 void add_setter(blueprint * bp, uint32_t fieldid, rhope_func impl);
77 returntype convert_to(uint32_t convertto, calldata * params); 77 returntype convert_to(uint32_t convertto, calldata * params);
78 returntype convert_from(uint32_t convertfrom, calldata * params); 78 returntype convert_from(uint32_t convertfrom, calldata * params);
79 object * copy_object(object * tocopy); 79 object * copy_object(object * tocopy);
80 object * naked_to_boxed(uint32_t type, void * rawdata);
81 void boxed_to_naked(object * src, void * dest);
80 returntype coerce_value(uint32_t type, calldata * params); 82 returntype coerce_value(uint32_t type, calldata * params);
81 blueprint * get_blueprint_byid(uint32_t type); 83 blueprint * get_blueprint_byid(uint32_t type);
82 84
83 #define INITIAL_TYPE_STORAGE 32 85 #define INITIAL_TYPE_STORAGE 32
84 #define INITIAL_METHOD_LOOKUP 8 86 #define INITIAL_METHOD_LOOKUP 8