From 6ea9cd49099b83aebbab9463e3432cb03a4b6ba4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 9 Jun 2024 00:16:47 +0900 Subject: [PATCH] Provisionally export new API --- ext/digest/digest.def | 3 +++ ext/digest/digest.h | 1 + 2 files changed, 4 insertions(+) create mode 100644 ext/digest/digest.def diff --git a/ext/digest/digest.def b/ext/digest/digest.def new file mode 100644 index 0000000000..6b724801ad --- /dev/null +++ b/ext/digest/digest.def @@ -0,0 +1,3 @@ +EXPORTS +Init_digest +rb_digest_wrap_metadata diff --git a/ext/digest/digest.h b/ext/digest/digest.h index 44158da613..4503929bab 100644 --- a/ext/digest/digest.h +++ b/ext/digest/digest.h @@ -81,6 +81,7 @@ rb_digest_make_metadata(const rb_digest_metadata_t *meta) static wrapper_func_type wrapper; if (!wrapper) { wrapper = (wrapper_func_type)rb_ext_resolve_symbol("digest.so", "rb_digest_wrap_metadata"); + if (!wrapper) rb_raise(rb_eLoadError, "rb_digest_wrap_metadata not found"); } return wrapper(meta); #else