Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
d48a2190
Commit
d48a2190
authored
Aug 30, 2019
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor #4662 with different names.
parent
49967097
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/mruby/boxing_no.h
include/mruby/boxing_no.h
+2
-2
include/mruby/error.h
include/mruby/error.h
+3
-3
No files found.
include/mruby/boxing_no.h
View file @
d48a2190
...
...
@@ -10,7 +10,7 @@
#define MRB_FIXNUM_SHIFT 0
#define MRB_TT_HAS_BASIC MRB_TT_OBJECT
union
mrb_value_
value
{
union
mrb_value_
union
{
#ifndef MRB_WITHOUT_FLOAT
mrb_float
f
;
#endif
...
...
@@ -20,7 +20,7 @@ union mrb_value_value {
};
typedef
struct
mrb_value
{
union
mrb_value_
value
value
;
union
mrb_value_
union
value
;
enum
mrb_vtype
tt
;
}
mrb_value
;
...
...
include/mruby/error.h
View file @
d48a2190
...
...
@@ -44,21 +44,21 @@ struct RBreak {
struct
RBreak
{
MRB_OBJECT_HEADER
;
struct
RProc
*
proc
;
union
mrb_value_
value
val_val
;
union
mrb_value_
union
value
;
};
#define RBREAK_VALUE_TT_MASK ((1 << 8) - 1)
static
inline
mrb_value
mrb_break_value_get
(
struct
RBreak
*
brk
)
{
mrb_value
val
;
val
.
value
=
brk
->
val
_val
;
val
.
value
=
brk
->
val
ue
;
val
.
tt
=
brk
->
flags
&
RBREAK_VALUE_TT_MASK
;
return
val
;
}
static
inline
void
mrb_break_value_set
(
struct
RBreak
*
brk
,
mrb_value
val
)
{
brk
->
val_
val
=
val
.
value
;
brk
->
val_
union
=
val
.
value
;
brk
->
flags
&=
~
RBREAK_VALUE_TT_MASK
;
brk
->
flags
|=
val
.
tt
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment