summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-06 16:01:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-06 16:01:35 -0700
commitdb161112abb1c684bf91b2c434e18b488c0aa2ca (patch)
tree9776e07d278953ebb82d4ebec239c174e1658e14 /parser.c
parent662d19a6e7fc9dad3ed7eafe50215028f65a456d (diff)
downloadtxr-db161112abb1c684bf91b2c434e18b488c0aa2ca.tar.gz
txr-db161112abb1c684bf91b2c434e18b488c0aa2ca.tar.bz2
txr-db161112abb1c684bf91b2c434e18b488c0aa2ca.zip
ffi: allow nil object to convert under closure type.
* ffi.c (ffi_closure_put): Only diagnose a bad object if it's not nil, otherwise let the null value of p through. This is useful because there are sometimes C interfaces which take an optional function pointer, whereby a null value indicates that the pointer is not specified.
Diffstat (limited to 'parser.c')
0 files changed, 0 insertions, 0 deletions