1#ifndef INTERNAL_COMPLEX_H
2#define INTERNAL_COMPLEX_H
19#define RCOMPLEX(obj) ((struct RComplex *)(obj))
22#define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r))
23#define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->imag, (i))
26VALUE rb_dbl_complex_new_polar_pi(
double abs,
double ang);
27st_index_t rb_complex_hash(
VALUE comp);
Ruby object's base components.
Internal header for Complex.
uintptr_t VALUE
Type that represents a Ruby object.