Header: mruby/data.h

Overview

Custom data type description.

Function Summary collapse

Define Summary

#define MRUBY_DATA_H
#define Data_Wrap_Struct
#define Data_Make_Struct
#define RDATA
#define DATA_PTR
#define DATA_TYPE
#define DATA_GET_PTR
#define DATA_CHECK_GET_PTR
#define mrb_data_check_and_get

obsolete functions and macros

#define mrb_get_datatype
#define mrb_check_datatype
#define Data_Get_Struct

Function Details

struct RData * mrb_data_object_alloc(mrb_state * mrb, struct RClass* klass, void * datap, const mrb_data_type * type)

void mrb_data_check_type(mrb_state * mrb, mrb_value , const mrb_data_type* )

void * mrb_data_get_ptr(mrb_state * mrb, mrb_value , const mrb_data_type* )

void * mrb_data_check_get_ptr(mrb_state * mrb, mrb_value , const mrb_data_type* )

void mrb_data_init(mrb_value v, void * ptr, const mrb_data_type * type)