Ruby 3.5.0dev (2025-02-22 revision 412997300569c1853c09813e4924b6df3d7e8669)
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
26#include "ruby/internal/value.h"
27
29
30/* bignum.c */
31
32
45int rb_cmpint(VALUE val, VALUE a, VALUE b);
46
47/* compar.c */
48
58void rb_cmperr(VALUE a, VALUE b);
59
61
62#endif /* RBIMPL_INTERN_COMPAR_H */
Defines RBIMPL_ATTR_COLD.
#define RBIMPL_ATTR_COLD()
Wraps (or simulates) __attribute__((cold))
Definition cold.h:34
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:74
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:65
void rb_cmperr(VALUE a, VALUE b)
Raises "comparison failed" error.
Definition compar.c:28
Defines RBIMPL_ATTR_NORETURN.
#define RBIMPL_ATTR_NORETURN()
Wraps (or simulates) [[noreturn]]
Definition noreturn.h:38
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40