aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-02 07:35:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-02 07:35:20 +0000
commit62777919cbad67db4314ed45e0f21c53a7b26bdf (patch)
tree514f565d9e4bf7c667f073668d0842d4dacc471f /object.c
parent1f5c66d1450f42a6de21e7a4647bc22b93c5802a (diff)
downloadruby-62777919cbad67db4314ed45e0f21c53a7b26bdf.tar.gz
internal.h: rb_raise_static
* internal.h (rb_raise_static): raise with a static message string literal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/object.c b/object.c
index 184a72f1fa..6c0aa040b9 100644
--- a/object.c
+++ b/object.c
@@ -2963,11 +2963,11 @@ rb_str_to_dbl(VALUE str, int badcheck)
#define special_const_to_float(val, pre, post) \
switch (val) { \
case Qnil: \
- rb_raise(rb_eTypeError, pre "nil" post); \
+ rb_raise_static(rb_eTypeError, pre "nil" post); \
case Qtrue: \
- rb_raise(rb_eTypeError, pre "true" post); \
+ rb_raise_static(rb_eTypeError, pre "true" post); \
case Qfalse: \
- rb_raise(rb_eTypeError, pre "false" post); \
+ rb_raise_static(rb_eTypeError, pre "false" post); \
}
static inline void