Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
eval.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_EVAL_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_EVAL_H
25#include "ruby/internal/value.h"
26
28
29/* eval.c */
32
35
38
41
43void rb_interrupt(void);
45
47void rb_jump_tag(int);
49void rb_obj_call_init_kw(VALUE, int, const VALUE*, int);
50VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
53
54/* eval_jump.c */
55void rb_set_end_proc(void (*)(VALUE), VALUE);
56
58
59#endif /* RBIMPL_INTERN_EVAL_H */
Tewaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
ID rb_frame_callee(void)
The name of the current method.
Definition: eval.c:1233
ID rb_frame_this_func(void)
The original name of the current method.
Definition: eval.c:1216
void rb_exc_raise(VALUE)
Raises an exception in the current thread.
Definition: eval.c:712
void rb_interrupt(void)
Raises an Interrupt exception.
Definition: eval.c:741
VALUE rb_protect(VALUE(*)(VALUE), VALUE, int *)
Protects a function call from potential global escapes from the function.
Definition: eval.c:1105
VALUE rb_make_exception(int, const VALUE *)
Make an Exception object from the list of arguments in a manner similar to Kernel#raise.
Definition: eval.c:888
void rb_exc_fatal(VALUE)
Raises a fatal error in the current thread.
Definition: eval.c:728
void rb_jump_tag(int)
Continues the exception caught by rb_protect() and rb_eval_string_protect().
Definition: eval.c:921
void rb_obj_call_init(VALUE, int, const VALUE *)
Calls initialize method of obj with the given arguments.
Definition: eval.c:1710
VALUE rb_f_abort(int, const VALUE *)
Definition: process.c:4494
VALUE rb_f_exit(int, const VALUE *)
Definition: process.c:4429
void rb_set_end_proc(void(*)(VALUE), VALUE)
Definition: eval_jump.c:59
void rb_obj_call_init_kw(VALUE, int, const VALUE *, int)
Definition: eval.c:1717
Defines RBIMPL_ATTR_NORETURN.
#define RBIMPL_ATTR_NORETURN()
Wraps (or simulates) [[noreturn]]
Definition: noreturn.h:38
#define const
Definition: strftime.c:108
Defines VALUE and ID.
unsigned long VALUE
Definition: value.h:38
unsigned long ID
Definition: value.h:39