diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-06 16:01:35 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-06 16:01:35 -0700 |
commit | db161112abb1c684bf91b2c434e18b488c0aa2ca (patch) | |
tree | 9776e07d278953ebb82d4ebec239c174e1658e14 /combi.c | |
parent | 662d19a6e7fc9dad3ed7eafe50215028f65a456d (diff) | |
download | txr-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 'combi.c')
0 files changed, 0 insertions, 0 deletions