add pic_obj_value function
This commit is contained in:
parent
d21e6714b6
commit
177d2c7098
|
@ -35,4 +35,6 @@ struct pic_symbol {
|
|||
char *name;
|
||||
};
|
||||
|
||||
pic_value pic_obj_value(struct pic_object *obj);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#include "picrin.h"
|
||||
|
||||
pic_value
|
||||
pic_obj_value(struct pic_object *obj)
|
||||
{
|
||||
pic_value v;
|
||||
|
||||
v.vtype = PIC_VTYPE_HEAP;
|
||||
v.u.data = obj;
|
||||
return v;
|
||||
}
|
Loading…
Reference in New Issue