Merge pull request #2422 from jeremyevans/rb_keyword_given_p

Add rb_keyword_given_p to the C-API
This commit is contained in:
Jeremy Evans 2019-09-03 11:32:02 -07:00 committed by GitHub
parent f702cd6ace
commit 39c3252cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2019-09-04 03:32:24 +09:00
Merged-By: jeremyevans <code@jeremyevans.net>
6 changed files with 30 additions and 3 deletions

View file

@ -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. */