diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-21 16:31:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-22 00:19:55 +0900 |
commit | 74c6662af5d9748baff7c32e8f0baf7996dd898e (patch) | |
tree | afdd921e0e957c0dc988f8be931e4bd2010b59e4 /ext/digest/digest.h | |
parent | c030cec7cac3bacd230b87c9610bc67d8b89ab26 (diff) |
Hoisted out rb_digest_namespace
Diffstat (limited to 'ext/digest/digest.h')
-rw-r--r-- | ext/digest/digest.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/digest/digest.h b/ext/digest/digest.h index 30359ad348..d9997b5db0 100644 --- a/ext/digest/digest.h +++ b/ext/digest/digest.h @@ -49,3 +49,10 @@ rb_digest_##name##_finish(void *ctx, unsigned char *ptr) \ { \ return name##_Final(ptr, ctx); \ } + +static inline VALUE +rb_digest_namespace(void) +{ + rb_require("digest"); + return rb_path2class("Digest"); +} |