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

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

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/dllexport.h"
24#include "ruby/internal/value.h"
25
26 RBIMPL_SYMBOL_EXPORT_BEGIN()
27
28/* compar.c */
29 int rb_cmpint(VALUE, VALUE, VALUE);
30 NORETURN(void rb_cmperr(VALUE, VALUE));
31
32 RBIMPL_SYMBOL_EXPORT_END()
33
34#endif /* RBIMPL_INTERN_COMPAR_H */
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_cmpint
#define rb_cmpint(cmp, a, b)
rb_cmperr
void rb_cmperr(VALUE, VALUE)
Definition: compar.c:28
int
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38