Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Internal header for Comparable. More...
#include "internal/vm.h"
Go to the source code of this file.
Data Structures | |
struct | cmp_opt_data |
Macros | |
#define | STRING_P(s) (RB_TYPE_P((s), T_STRING) && CLASS_OF(s) == rb_cString) |
#define | NEW_CMP_OPT_MEMO(type, value) NEW_PARTIAL_MEMO_FOR(type, value, cmp_opt) |
#define | CMP_OPTIMIZABLE_BIT(type) (1U << TOKEN_PASTE(cmp_opt_,type)) |
#define | CMP_OPTIMIZABLE(data, type) |
#define | OPTIMIZED_CMP(a, b, data) |
Enumerations | |
enum | { cmp_opt_Integer , cmp_opt_String , cmp_opt_Float , cmp_optimizable_count } |
Functions | |
VALUE | rb_invcmp (VALUE, VALUE) |
Internal header for Comparable.
Definition in file compar.h.
#define CMP_OPTIMIZABLE | ( | data, | |
type | |||
) |
#define CMP_OPTIMIZABLE_BIT | ( | type | ) | (1U << TOKEN_PASTE(cmp_opt_,type)) |
#define NEW_CMP_OPT_MEMO | ( | type, | |
value | |||
) | NEW_PARTIAL_MEMO_FOR(type, value, cmp_opt) |
#define OPTIMIZED_CMP | ( | a, | |
b, | |||
data | |||
) |
#define STRING_P | ( | s | ) | (RB_TYPE_P((s), T_STRING) && CLASS_OF(s) == rb_cString) |
anonymous enum |