added System<<getBytes, System<<putBytes.

also added primitive functions for the above
This commit is contained in:
hyunghwan.chung
2017-12-09 15:47:43 +00:00
parent 471d8ad797
commit 541ab59028
5 changed files with 232 additions and 85 deletions

View File

@ -470,7 +470,7 @@ moo_pfrc_t moo_pf_responds_to (moo_t* moo, moo_ooi_t nargs)
selector = MOO_STACK_GETARG(moo, nargs, 0);
/*if (MOO_CLASSOF(moo,selector) != moo->_symbol)*/
if (!MOO_OOP_IS_POINTER(selector) || !MOO_OBJ_IS_CHAR_POINTER(selector))
if (!MOO_OBJ_IS_CHAR_POINTER(selector))
{
moo_seterrbfmt (moo, MOO_EINVAL, "invalid argument - %O", selector);
return MOO_PF_FAILURE;