def callmeth(selfbox, argboxes): selfobj = selfbox.getref(SELFTYPE) meth = getattr(selfobj, methname) methargs = getargs(argboxes) res = llimpl.call_maybe_on_top_of_llinterp(meth, methargs) if RESULT is not ootype.Void: return boxresult(RESULT, res)
def callfunc(funcbox, argboxes): funcobj = funcbox.getref(FUNC) funcargs = getargs(argboxes) res = llimpl.call_maybe_on_top_of_llinterp(funcobj, funcargs) if RESULT is not ootype.Void: return boxresult(RESULT, res)