mruby  2.0.1
mruby is the lightweight implementation of the Ruby language
Classes | Macros | Functions
istruct.h File Reference

More...

#include "common.h"
#include <string.h>
Include dependency graph for istruct.h:

Go to the source code of this file.

Classes

struct  RIStruct
 

Macros

#define ISTRUCT_DATA_SIZE   (sizeof(void*) * 3)
 Inline structures that fit in RVALUE. More...
 
#define RISTRUCT(obj)   ((struct RIStruct*)(mrb_ptr(obj)))
 
#define ISTRUCT_PTR(obj)   (RISTRUCT(obj)->inline_data)
 

Functions

static mrb_int mrb_istruct_size ()
 
static void * mrb_istruct_ptr (mrb_value object)
 
static void mrb_istruct_copy (mrb_value dest, mrb_value src)
 

Detailed Description

See Copyright Notice in mruby.h

Macro Definition Documentation

◆ ISTRUCT_DATA_SIZE

#define ISTRUCT_DATA_SIZE   (sizeof(void*) * 3)

Inline structures that fit in RVALUE.

They cannot have finalizer, and cannot have instance variables.