diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-26 07:26:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-26 07:26:55 -0700 |
commit | 3600dc3307b5e9cf0ed49282d7eaa1867026627a (patch) | |
tree | c456107135876bc2b0fd16fdfbc78c6120400666 /ffi.c | |
parent | 55c2dbb134edce8835cf94c2425b80db256bccf2 (diff) | |
download | txr-3600dc3307b5e9cf0ed49282d7eaa1867026627a.tar.gz txr-3600dc3307b5e9cf0ed49282d7eaa1867026627a.tar.bz2 txr-3600dc3307b5e9cf0ed49282d7eaa1867026627a.zip |
FFI: document: elemsize and elemtype work on enums.
* ffi.c (ffi_elemsize, ffi_elemtype): Fix error messages to
include enum among possible argument types.
* txr.1: Extend documentation for ffi-elemsize and ffi-elemtype
to include base integer type of enumerations.
Diffstat (limited to 'ffi.c')
-rw-r--r-- | ffi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4463,7 +4463,7 @@ val ffi_elemsize(val type) val self = lit("ffi-elemsize"); struct txr_ffi_type *tft = ffi_type_struct_checked(self, type); if (!tft->eltype) { - uw_throwf(error_s, lit("~a: ~s isn't an array or pointer"), + uw_throwf(error_s, lit("~a: ~s isn't an array, pointer or enum"), self, type, nao); } else { struct txr_ffi_type *etft = ffi_type_struct(tft->eltype); @@ -4478,7 +4478,7 @@ val ffi_elemtype(val type) val eltype = tft->eltype; if (!eltype) { - uw_throwf(error_s, lit("~a: ~s isn't an array or pointer"), + uw_throwf(error_s, lit("~a: ~s isn't an array, pointer or enum"), self, type, nao); } |