Ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498)
backward.h
1#ifndef RUBY_RUBY_BACKWARD_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RUBY_RUBY_BACKWARD_H 1
10#include "ruby/internal/value.h"
12#include "ruby/backward/2/attributes.h"
13
14#define RBIMPL_ATTR_DEPRECATED_SINCE(ver) RBIMPL_ATTR_DEPRECATED(("since " #ver))
15#define RBIMPL_ATTR_DEPRECATED_INTERNAL(ver) RBIMPL_ATTR_DEPRECATED(("since "#ver", also internal"))
16
17/* eval.c */
18RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_disable_super();
19RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_enable_super();
20
21/* hash.c */
22RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_hash_iter_lev();
23RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_hash_ifnone();
24
25/* string.c */
26RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_str_associate();
27RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_str_associated();
28
29/* variable.c */
30RBIMPL_ATTR_DEPRECATED_SINCE(2.5) void rb_autoload();
31
32/* eval.c */
33RBIMPL_ATTR_DEPRECATED_INTERNAL(2.6) void rb_frozen_class_p();
34RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_exec_end_proc();
35
36/* error.c */
37RBIMPL_ATTR_DEPRECATED_INTERNAL(2.3) void rb_compile_error();
38RBIMPL_ATTR_DEPRECATED_INTERNAL(2.3) void rb_compile_error_with_enc();
39RBIMPL_ATTR_DEPRECATED_INTERNAL(2.3) void rb_compile_error_append();
40
41/* gc.c */
42RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_gc_call_finalizer_at_exit();
43
44/* signal.c */
45RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_trap_exit();
46
47/* struct.c */
48RBIMPL_ATTR_DEPRECATED_INTERNAL(2.4) void rb_struct_ptr();
49
50/* thread.c */
51RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_clear_trace_func();
52
53/* variable.c */
54RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_generic_ivar_table();
55RBIMPL_ATTR_DEPRECATED_INTERNAL(2.6) NORETURN(VALUE rb_mod_const_missing(VALUE, VALUE));
56
57/* from version.c */
58#if defined(RUBY_SHOW_COPYRIGHT_TO_DIE) && !!(RUBY_SHOW_COPYRIGHT_TO_DIE+0)
59/* for source code backward compatibility */
60RBIMPL_ATTR_DEPRECATED_SINCE(2.4)
61static inline int
62ruby_show_copyright_to_die(int exitcode)
63{
65 return exitcode;
66}
67#define ruby_show_copyright() /* defer EXIT_SUCCESS */ \
68 (exit(ruby_show_copyright_to_die(EXIT_SUCCESS)))
69#endif
70
71#endif /* RUBY_RUBY_BACKWARD_H */
void ruby_show_copyright(void)
Prints the copyright notice of the CRuby interpreter to stdout.
Definition: version.c:145
Interpreter embedding APIs.
Defines VALUE and ID.