Ruby: include/ruby/internal/eval.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

eval.h
Go to the documentation of this file.
1#ifndef RBIMPL_EVAL_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_EVAL_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25
26 RBIMPL_SYMBOL_EXPORT_BEGIN()
27
28 VALUE rb_eval_string(const char*);
29 VALUE rb_eval_string_protect(const char*, int*);
30 VALUE rb_eval_string_wrap(const char*, int*);
31 VALUE rb_funcall(VALUE, ID, int, ...);
32 VALUE rb_funcallv(VALUE, ID, int, const VALUE*);
33 VALUE rb_funcallv_kw(VALUE, ID, int, const VALUE*, int);
34 VALUE rb_funcallv_public(VALUE, ID, int, const VALUE*);
35 VALUE rb_funcallv_public_kw(VALUE, ID, int, const VALUE*, int);
36#define rb_funcall2 rb_funcallv
37#define rb_funcall3 rb_funcallv_public
38 VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE*);
39 VALUE rb_funcall_passing_block_kw(VALUE, ID, int, const VALUE*, int);
40 VALUE rb_funcall_with_block(VALUE, ID, int, const VALUE*, VALUE);
41 VALUE rb_funcall_with_block_kw(VALUE, ID, int, const VALUE*, VALUE, int);
42 VALUE rb_call_super(int, const VALUE*);
43 VALUE rb_call_super_kw(int, const VALUE*, int);
44 VALUE rb_current_receiver(void);
45int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, VALUE *);
46 VALUE rb_extract_keywords(VALUE *orighash);
47
48 RBIMPL_SYMBOL_EXPORT_END()
49
50#endif /* RBIMPL_EVAL_H */
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
rb_extract_keywords
VALUE rb_extract_keywords(VALUE *orighash)
Definition: class.c:2067
rb_get_kwargs
int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, VALUE *)
Definition: class.c:2085
rb_call_super_kw
VALUE rb_call_super_kw(int, const VALUE *, int)
Definition: vm_eval.c:290
rb_eval_string
VALUE rb_eval_string(const char *)
Evaluates the given string in an isolated binding.
Definition: vm_eval.c:1823
rb_funcallv_kw
VALUE rb_funcallv_kw(VALUE, ID, int, const VALUE *, int)
Definition: vm_eval.c:1030
rb_current_receiver
VALUE rb_current_receiver(void)
Definition: vm_eval.c:306
rb_funcall
VALUE rb_funcall(VALUE, ID, int,...)
Calls a method.
Definition: vm_eval.c:1077
rb_funcall_with_block
VALUE rb_funcall_with_block(VALUE, ID, int, const VALUE *, VALUE)
Definition: vm_eval.c:1163
rb_funcall_passing_block
VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE *)
Definition: vm_eval.c:1149
rb_funcallv_public_kw
VALUE rb_funcallv_public_kw(VALUE, ID, int, const VALUE *, int)
Definition: vm_eval.c:1143
rb_funcall_passing_block_kw
VALUE rb_funcall_passing_block_kw(VALUE, ID, int, const VALUE *, int)
Definition: vm_eval.c:1156
rb_funcall_with_block_kw
VALUE rb_funcall_with_block_kw(VALUE, ID, int, const VALUE *, VALUE, int)
Definition: vm_eval.c:1173
rb_eval_string_wrap
VALUE rb_eval_string_wrap(const char *, int *)
Evaluates the given string under a module binding in an isolated binding.
Definition: vm_eval.c:1877
rb_eval_string_protect
VALUE rb_eval_string_protect(const char *, int *)
Evaluates the given string in an isolated binding.
Definition: vm_eval.c:1845
rb_funcallv_public
VALUE rb_funcallv_public(VALUE, ID, int, const VALUE *)
Calls a method.
Definition: vm_eval.c:1137
rb_call_super
VALUE rb_call_super(int, const VALUE *)
Definition: vm_eval.c:298
rb_funcallv
#define rb_funcallv(...)
Definition: internal.h:77
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38
ID
unsigned long ID
Definition: value.h:39