Mercurial > repos > rhope
diff runtime/object.h @ 34:df038cef648b
More work on supporting user defined types in the C backend
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 30 Sep 2009 01:25:03 -0400 |
parents | 914ad38f9b59 |
children | 495dddadd058 |
line wrap: on
line diff
--- a/runtime/object.h Mon Sep 28 22:08:40 2009 -0400 +++ b/runtime/object.h Wed Sep 30 01:25:03 2009 -0400 @@ -71,6 +71,8 @@ blueprint * register_type_byid(uint32_t type, uint32_t size, special_func init, special_func copy, special_func cleanup); blueprint * new_blueprint(uint32_t type, uint32_t size, special_func init, special_func copy, special_func cleanup); void add_method(blueprint * bp, uint32_t methodid, rhope_func impl); +void add_getter(blueprint * bp, uint32_t fieldid, rhope_func impl); +void add_setter(blueprint * bp, uint32_t fieldid, rhope_func impl); returntype convert_to(uint32_t convertto, calldata * params); returntype convert_from(uint32_t convertfrom, calldata * params); object * copy_object(object * tocopy);