summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index 03c9b61f3d..839bbb5e52 100644
--- a/ruby.h
+++ b/ruby.h
@@ -177,7 +177,14 @@ VALUE rb_uint2inum _((unsigned long));
void rb_check_type _((VALUE,int));
#define Check_Type(v,t) rb_check_type((VALUE)(v),t)
void rb_check_safe_str _((VALUE));
+/* obsolete macro - use SafeStr(v) */
#define Check_SafeStr(v) rb_check_safe_str((VALUE)(v))
+VALUE rb_str_to_str _((VALUE));
+#define SafeStr(v) do {\
+ v = rb_str_to_str(v);\
+ rb_check_safe_str(v);\
+} while (0)
+
void rb_secure _((int));
EXTERN int ruby_safe_level;