mruby/c VM Source Code release 4.0.0
Loading...
Searching...
No Matches
c_proc.h
Go to the documentation of this file.
1
14
15#ifndef MRBC_SRC_C_PROC_H_
16#define MRBC_SRC_C_PROC_H_
17
18/***** Feature test switches ************************************************/
19/***** System headers *******************************************************/
20//@cond
21#include <stdint.h>
22//@endcond
23
24/***** Local headers ********************************************************/
25#include "value.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/***** Constat values *******************************************************/
32/***** Macros ***************************************************************/
33/***** Typedefs *************************************************************/
34struct CALLINFO;
35struct IREP;
36
37//================================================================
54//@cond
55typedef struct RProc mrb_proc;
56//@endcond
57
58/***** Global variables *****************************************************/
59/***** Function prototypes **************************************************/
60//@cond
61mrbc_value mrbc_proc_new(struct VM *vm, void *irep, uint8_t b_or_m);
63void mrbc_proc_clear_vm_id(mrbc_value *v);
64//@endcond
65
66
67/***** Inline functions *****************************************************/
68
69
70#ifdef __cplusplus
71}
72#endif
73#endif // ifndef MRBC_SRC_C_PROC_H_
struct RObject mrbc_value
Value object. Default version.
void mrbc_proc_delete(mrbc_value *val)
Definition c_proc.c:71
mrbc_value mrbc_proc_new(struct VM *vm, void *irep, uint8_t b_or_m)
Definition c_proc.c:42
struct RProc mrbc_proc
Proc object.
Call information.
Definition vm.h:121
IREP Internal REPresentation.
Definition vm.h:43
Proc object.
Definition c_proc.h:43
struct IREP * irep
Target IREP.
Definition c_proc.h:49
mrbc_value ret_val
Return value of this block.
Definition c_proc.h:51
mrbc_value self
Copy of self object. Valid when 'B'.
Definition c_proc.h:50
MRBC_OBJECT_HEADER
Definition c_proc.h:44
uint8_t block_or_method
'B' or 'M' char code
Definition c_proc.h:46
struct CALLINFO * callinfo
callinfo when proc was created.
Definition c_proc.h:47
struct CALLINFO * callinfo_self
callinfo of self object. Valid when 'B'.
Definition c_proc.h:48
Virtual Machine.
Definition vm.h:150
mruby/c value definitions