Ruby  3.1.4p223 (2023-03-30 revision HEAD)
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 */
18 RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_disable_super();
19 RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_enable_super();
20 
21 /* hash.c */
22 RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_hash_iter_lev();
23 RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_hash_ifnone();
24 
25 /* string.c */
26 RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_str_associate();
27 RBIMPL_ATTR_DEPRECATED_SINCE(2.2) void rb_str_associated();
28 
29 /* variable.c */
30 RBIMPL_ATTR_DEPRECATED_SINCE(2.5) void rb_autoload();
31 
32 /* eval.c */
33 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.6) void rb_frozen_class_p();
34 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_exec_end_proc();
35 
36 /* error.c */
37 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.3) void rb_compile_error();
38 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.3) void rb_compile_error_with_enc();
39 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.3) void rb_compile_error_append();
40 
41 /* gc.c */
42 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_gc_call_finalizer_at_exit();
43 
44 /* signal.c */
45 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_trap_exit();
46 
47 /* struct.c */
48 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.4) void rb_struct_ptr();
49 
50 /* thread.c */
51 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_clear_trace_func();
52 
53 /* variable.c */
54 RBIMPL_ATTR_DEPRECATED_INTERNAL(2.7) void rb_generic_ivar_table();
55 RBIMPL_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 */
60 RBIMPL_ATTR_DEPRECATED_SINCE(2.4)
61 static inline int
62 ruby_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.
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40