got rid of hcl_getlastretv() but let hcl_execute() and hcl_executefromip() to return the returnv value

This commit is contained in:
2018-02-22 12:57:31 +00:00
parent a78dba499f
commit 9abb389aa2
3 changed files with 19 additions and 17 deletions

View File

@ -1450,21 +1450,15 @@ HCL_EXPORT int hcl_ignite (
/**
* The hcl_execute() function executes an activated context.
*/
HCL_EXPORT int hcl_execute (
HCL_EXPORT hcl_oop_t hcl_execute (
hcl_t* hcl
);
HCL_EXPORT int hcl_executefromip (
HCL_EXPORT hcl_oop_t hcl_executefromip (
hcl_t* hcl,
hcl_ooi_t initial_ip
);
#if defined(HCL_HAVE_INLINE)
static HCL_INLINE hcl_oop_t hcl_getlastretv (hcl_t* hcl) { return hcl->last_retv; }
#else
# define hcl_getlastretv(hcl) ((hcl)->last_retv)
#endif
HCL_EXPORT int hcl_attachio (
hcl_t* hcl,
hcl_ioimpl_t reader,