Ruby: ext/fiddle/pointer.c File Reference

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

Data Structures | Macros | Typedefs | Functions | Variables
pointer.c File Reference
`#include <stdbool.h>`
`#include <ruby/ruby.h>`
`#include <ruby/io.h>`
`#include <ctype.h>`
`#include <fiddle.h>`

Go to the source code of this file.

## Data Structures
struct | ptr_data

## Macros
#define | RB_OBJ_CLASSNAME(obj) rb_obj_class(obj)
#define | RB_OBJ_STRING(obj) (obj)
#define | RPTR_DATA(obj) ((struct ptr_data *)(DATA_PTR(obj)))

## Typedefs
typedef void(* | freefunc_t) (void *)

## Functions
void | Init_fiddle_pointer (void)

## Variables
VALUE | rb_cPointer

## Macro Definition Documentation

## ◆ RB_OBJ_CLASSNAME

#define RB_OBJ_CLASSNAME | ( |  | obj | ) | rb_obj_class(obj)

Definition at line 17 of file pointer.c.

## ◆ RB_OBJ_STRING

#define RB_OBJ_STRING | ( |  | obj | ) | (obj)

Definition at line 18 of file pointer.c.

## ◆ RPTR_DATA

#define RPTR_DATA | ( |  | obj | ) | ((struct ptr_data *)(DATA_PTR(obj)))

Definition at line 37 of file pointer.c.

## Typedef Documentation

## ◆ freefunc_t

typedef void(* freefunc_t) (void *)

Definition at line 27 of file pointer.c.

## Function Documentation

## ◆ Init_fiddle_pointer()

void Init_fiddle_pointer | ( | void |  | ) |

Definition at line 794 of file pointer.c.

References mFiddle, rb_cObject, rb_cPointer, rb_define_alloc_func(), rb_define_class_under(), rb_define_const(), rb_define_method, rb_define_singleton_method, rb_intern(), and rb_memory_view_register().

Referenced by Init_fiddle().

## Variable Documentation

## ◆ rb_cPointer

VALUE rb_cPointer

Definition at line 25 of file pointer.c.

Referenced by Init_fiddle_pointer().