diff options
author | Kenta Murata <[email protected]> | 2020-12-31 02:01:35 +0900 |
---|---|---|
committer | Kenta Murata <[email protected]> | 2020-12-31 02:05:02 +0900 |
commit | a8014dae47cc777ce5e509c9401b67cacb6631ae (patch) | |
tree | dded1fa807711fea154587558a3c678f5644ce0d /ext/bigdecimal/bigdecimal.h | |
parent | 4569e46550d4ceea2ee4d5c683dd27872a758b36 (diff) |
[ruby/bigdecimal] Refactor object allocation
https://github.com/ruby/bigdecimal/commit/271cebe567
Diffstat (limited to 'ext/bigdecimal/bigdecimal.h')
-rw-r--r-- | ext/bigdecimal/bigdecimal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h index 8027873877..900ebd412a 100644 --- a/ext/bigdecimal/bigdecimal.h +++ b/ext/bigdecimal/bigdecimal.h @@ -285,10 +285,9 @@ typedef struct { * ------------------ */ -VP_EXPORT Real * -VpNewRbClass(size_t mx, char const *str, VALUE klass); +VP_EXPORT Real *VpNewRbClass(size_t mx, char const *str, VALUE klass, bool strict_p, bool raise_exception); -VP_EXPORT Real *VpCreateRbObject(size_t mx,const char *str); +VP_EXPORT Real *VpCreateRbObject(size_t mx, const char *str, bool raise_exception); static inline BDIGIT rmpd_base_value(void) { return RMPD_BASE; } |