Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the documentation of this file.
12 #define SAFE_LEVEL_MAX RUBY_SAFE_LEVEL_MAX
20 #undef rb_set_safe_level
21 #undef ruby_safe_level_2_warning
26 rb_warn(
"rb_safe_level_2_warning will be removed in Ruby 3.0");
33 rb_warn(
"rb_safe_level will be removed in Ruby 3.0");
34 return GET_VM()->safe_level_;
40 rb_warn(
"rb_set_safe_level_force will be removed in Ruby 3.0");
41 GET_VM()->safe_level_ = safe;
49 rb_warn(
"rb_set_safe_level will be removed in Ruby 3.0");
70 rb_warn(
"$SAFE will become a normal global variable in Ruby 3.0");
80 rb_warn(
"$SAFE will become a normal global variable in Ruby 3.0");
101 rb_warn(
"rb_secure will be removed in Ruby 3.0");
102 if (level <=
GET_VM()->safe_level_) {
118 rb_warn(
"rb_secure_update will be removed in Ruby 3.0");
124 rb_warn(
"rb_insecure_operation will be removed in Ruby 3.0");
138 rb_warn(
"rb_check_safe_obj will be removed in Ruby 3.0");
int ruby_safe_level_2_warning(void)
void rb_secure_update(VALUE obj)
void rb_set_safe_level_force(int safe)
void rb_warn(const char *fmt,...)
void rb_set_safe_level(int level)
void rb_check_safe_obj(VALUE x)
void rb_raise(VALUE exc, const char *fmt,...)
void rb_define_virtual_variable(const char *q, type *w, void_type *e)
Define a function-backended global variable.
void rb_insecure_operation(void)
const char * rb_source_location_cstr(int *pline)
ID rb_frame_callee(void)
The name of the current method.
void rb_secure(int level)