Ruby: include/ruby/internal/intern/numeric.h Source File

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

numeric.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_NUMERIC_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_NUMERIC_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25#include "ruby/backward/2/attributes.h"
26
27 RBIMPL_SYMBOL_EXPORT_BEGIN()
28
29/* numeric.c */
30 NORETURN(void rb_num_zerodiv(void));
31#define RB_NUM_COERCE_FUNCS_NEED_OPID 1
32 VALUE rb_num_coerce_bin(VALUE, VALUE, ID);
33 VALUE rb_num_coerce_cmp(VALUE, VALUE, ID);
34 VALUE rb_num_coerce_relop(VALUE, VALUE, ID);
35 VALUE rb_num_coerce_bit(VALUE, VALUE, ID);
36 VALUE rb_num2fix(VALUE);
37 VALUE rb_fix2str(VALUE, int);
38 CONSTFUNC(VALUE rb_dbl_cmp(double, double));
39
40 RBIMPL_SYMBOL_EXPORT_END()
41
42#endif /* RBIMPL_INTERN_NUMERIC_H */
attributes.h
Various attribute-related macros.
CONSTFUNC
#define CONSTFUNC(x)
Definition: attributes.h:51
NORETURN
#define NORETURN(x)
Definition: attributes.h:152
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_num_zerodiv
void rb_num_zerodiv(void)
Definition: numeric.c:199
rb_dbl_cmp
VALUE rb_dbl_cmp(double, double)
Definition: numeric.c:1465
rb_num_coerce_bin
VALUE rb_num_coerce_bin(VALUE, VALUE, ID)
Definition: numeric.c:452
rb_fix2str
VALUE rb_fix2str(VALUE, int)
Definition: numeric.c:3495
rb_num_coerce_bit
VALUE rb_num_coerce_bit(VALUE, VALUE, ID)
Definition: numeric.c:4395
rb_num_coerce_cmp
VALUE rb_num_coerce_cmp(VALUE, VALUE, ID)
Definition: numeric.c:459
rb_num2fix
VALUE rb_num2fix(VALUE)
Definition: numeric.c:3140
rb_num_coerce_relop
VALUE rb_num_coerce_relop(VALUE, VALUE, ID)
Definition: numeric.c:474
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38
ID
unsigned long ID
Definition: value.h:39