diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-09-03 11:32:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 11:32:02 -0700 |
commit | 39c3252cd175074581855e5f9681cc723c15ff72 (patch) | |
tree | d10d0915b8611efeb9dd231542c20b6bc60609a4 /vm_insnhelper.h | |
parent | f702cd6ace7e134714d42ffb1606c25b5ded24c7 (diff) |
Merge pull request #2422 from jeremyevans/rb_keyword_given_p
Add rb_keyword_given_p to the C-API
Notes
Notes:
Merged-By: jeremyevans <code@jeremyevans.net>
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r-- | vm_insnhelper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 7709840930..9f09d4ab5e 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -241,6 +241,7 @@ THROW_DATA_CONSUMED_SET(struct vm_throw_data *obj) #define IS_ARGS_SPLAT(ci) ((ci)->flag & VM_CALL_ARGS_SPLAT) #define IS_ARGS_KEYWORD(ci) ((ci)->flag & VM_CALL_KWARG) #define IS_ARGS_KW_SPLAT(ci) ((ci)->flag & VM_CALL_KW_SPLAT) +#define IS_ARGS_KW_OR_KW_SPLAT(ci) ((ci)->flag & (VM_CALL_KWARG | VM_CALL_KW_SPLAT)) /* If this returns true, an optimized function returned by `vm_call_iseq_setup_func` can be used as a fastpath. */ |