summaryrefslogtreecommitdiff
path: root/ext/fiddle/conversions.h
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-07-09 21:39:51 +0900
committerSutou Kouhei <kou@cozmixng.org>2020-11-18 09:05:13 +0900
commite2dfc0c26b1f3d3517002ca2645d1b67847fe518 (patch)
tree943da48b87240b9b32c7885d332ef1488f270b6f /ext/fiddle/conversions.h
parentae7b53546ca18b56c23f612b6935e98268a07602 (diff)
[ruby/fiddle] Add support for specifying types by name as String or Symbol
For example, :voidp equals to Fiddle::TYPE_VOID_P. https://github.com/ruby/fiddle/commit/3b4de54899
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3780
Diffstat (limited to 'ext/fiddle/conversions.h')
-rw-r--r--ext/fiddle/conversions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fiddle/conversions.h b/ext/fiddle/conversions.h
index f900efa9ad..1de956e90c 100644
--- a/ext/fiddle/conversions.h
+++ b/ext/fiddle/conversions.h
@@ -25,6 +25,7 @@ typedef union
} fiddle_generic;
/* Deprecated. Use rb_fiddle_*() version. */
+VALUE rb_fiddle_type_ensure(VALUE type);
ffi_type * rb_fiddle_int_to_ffi_type(int type);
void rb_fiddle_value_to_generic(int type, VALUE *src, fiddle_generic *dst);
VALUE rb_fiddle_generic_to_value(VALUE rettype, fiddle_generic retval);