FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mruby/src/variable.h at master · tjsingleton/mruby · GitHub
This repository was archived by the owner on Aug 1, 2026. It is now read-only.
tjsingleton
/
mruby
Public archive
forked from
mruby/mruby
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mruby
/
src
/
variable.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (38 loc) · 1.66 KB
Breadcrumbs
mruby
/
src
/
variable.h
Copy path
File metadata and controls
42 lines (38 loc) · 1.66 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef
MRUBY_VARIABLE_H
#define
MRUBY_VARIABLE_H
typedef
struct
global_variable
{
int
counter
;
mrb_value
*
data
;
mrb_value
(
*
getter
)();
void
(
*
setter
)();
//void (*marker)();
//int block_trace;
//struct trace_var *trace;
}
global_variable
;
struct
global_entry
{
global_variable
*
var
;
mrb_sym
id
;
};
mrb_value
mrb_vm_special_get
(
mrb_state
*
,
mrb_sym
);
void
mrb_vm_special_set
(
mrb_state
*
,
mrb_sym
,
mrb_value
);
mrb_value
mrb_vm_iv_get
(
mrb_state
*
,
mrb_sym
);
void
mrb_vm_iv_set
(
mrb_state
*
,
mrb_sym
,
mrb_value
);
mrb_value
mrb_vm_cv_get
(
mrb_state
*
,
mrb_sym
);
void
mrb_vm_cv_set
(
mrb_state
*
,
mrb_sym
,
mrb_value
);
mrb_value
mrb_vm_const_get
(
mrb_state
*
,
mrb_sym
);
void
mrb_vm_const_set
(
mrb_state
*
,
mrb_sym
,
mrb_value
);
mrb_value
mrb_const_get
(
mrb_state
*
,
mrb_value
,
mrb_sym
);
void
mrb_const_set
(
mrb_state
*
,
mrb_value
,
mrb_sym
,
mrb_value
);
int
mrb_const_defined
(
mrb_state
*
,
mrb_value
,
mrb_sym
);
mrb_value
mrb_obj_iv_get
(
mrb_state
*
,
struct
RObject
*
,
mrb_sym
);
void
mrb_obj_iv_set
(
mrb_state
*
,
struct
RObject
*
,
mrb_sym
,
mrb_value
);
const
char
*
mrb_class2name
(
mrb_state
*
mrb
,
struct
RClass
*
klass
);
void
mrb_define_variable
(
mrb_state
*
mrb
,
const
char
*
name
,
mrb_value
*
var
);
mrb_value
mrb_iv_get
(
mrb_state
*
mrb
,
mrb_value
obj
,
mrb_sym
sym
);
void
mrb_iv_set
(
mrb_state
*
mrb
,
mrb_value
obj
,
mrb_sym
sym
,
mrb_value
v
);
/* mrb_iv_set */
void
mrb_copy_generic_ivar
(
mrb_value
clone
,
mrb_value
obj
);
int
mrb_const_defined_at
(
mrb_state
*
mrb
,
struct
RClass
*
klass
,
mrb_sym
id
);
mrb_value
mrb_f_global_variables
(
mrb_state
*
mrb
,
mrb_value
self
);
mrb_value
mrb_gv_get
(
mrb_state
*
mrb
,
mrb_sym
sym
);
void
mrb_gv_set
(
mrb_state
*
mrb
,
mrb_sym
sym
,
mrb_value
val
);
#endif
/* MRUBY_VARIABLE_H */
Back
|
FazBrowse Home
|
New Git URL