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

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

compar.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_COMPAR_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_COMPAR_H
23#include "ruby/internal/attr/cold.h"
24#include "ruby/internal/attr/noreturn.h"
25#include "ruby/internal/dllexport.h"
26#include "ruby/internal/value.h"
27
28 RBIMPL_SYMBOL_EXPORT_BEGIN()
29
30/* bignum.c */
31
32
45int rb_cmpint(VALUE val, VALUE a, VALUE b);
46
47/* compar.c */
48
49 RBIMPL_ATTR_COLD()
50 RBIMPL_ATTR_NORETURN()
58void rb_cmperr(VALUE a, VALUE b);
59
60 RBIMPL_SYMBOL_EXPORT_END()
61
62#endif /* RBIMPL_INTERN_COMPAR_H */
cold.h
Defines RBIMPL_ATTR_COLD.
RBIMPL_ATTR_COLD
#define RBIMPL_ATTR_COLD()
Wraps (or simulates) __attribute__((cold))
Definition cold.h:34
dllexport.h
Tweaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:106
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:97
rb_cmperr
void rb_cmperr(VALUE a, VALUE b)
Raises "comparison failed" error.
Definition compar.c:28
noreturn.h
Defines RBIMPL_ATTR_NORETURN.
RBIMPL_ATTR_NORETURN
#define RBIMPL_ATTR_NORETURN()
Wraps (or simulates) [[noreturn]]
Definition noreturn.h:38
value.h
Defines VALUE and ID.
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40