Ruby 3.5.0dev (2025-08-13 revision a9230e76ee19716c7d2e035be7bd1be9bdca2b59)
uid_t.h
Go to the documentation of this file.
1#ifndef RBIMPL_ARITHMETIC_UID_T_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ARITHMETIC_UID_T_H
23#include "ruby/internal/config.h"
25
27#ifndef UIDT2NUM
28# define UIDT2NUM RB_LONG2NUM
29#endif
30
32#ifndef NUM2UIDT
33# define NUM2UIDT RB_NUM2LONG
34#endif
35
37#ifndef PRI_UIDT_PREFIX
38# define PRI_UIDT_PREFIX PRI_LONG_PREFIX
39#endif
40
41#endif /* RBIMPL_ARITHMETIC_UID_T_H */
Arithmetic conversion between C's long and Ruby's.