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
8f99689b
Unverified
Commit
8f99689b
authored
Aug 06, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `mrb_static_assert` from the core; #5051
parent
11cc7bed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
include/mruby.h
include/mruby.h
+1
-1
src/gc.c
src/gc.c
+0
-3
src/string.c
src/string.c
+0
-3
No files found.
include/mruby.h
View file @
8f99689b
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L
#define mrb_static_assert(exp, str) _Static_assert(exp, str)
#define mrb_static_assert(exp, str) _Static_assert(exp, str)
#else
#else
#define mrb_static_assert(exp, str)
mrb_assert(exp)
#define mrb_static_assert(exp, str)
#endif
#endif
#include "mrbconf.h"
#include "mrbconf.h"
...
...
src/gc.c
View file @
8f99689b
...
@@ -1619,9 +1619,6 @@ mrb_init_gc(mrb_state *mrb)
...
@@ -1619,9 +1619,6 @@ mrb_init_gc(mrb_state *mrb)
{
{
struct
RClass
*
gc
;
struct
RClass
*
gc
;
mrb_static_assert
(
sizeof
(
RVALUE
)
<=
sizeof
(
void
*
)
*
6
,
"RVALUE size must be within 6 words"
);
gc
=
mrb_define_module
(
mrb
,
"GC"
);
gc
=
mrb_define_module
(
mrb
,
"GC"
);
mrb_define_class_method
(
mrb
,
gc
,
"start"
,
gc_start
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
gc
,
"start"
,
gc_start
,
MRB_ARGS_NONE
());
...
...
src/string.c
View file @
8f99689b
...
@@ -2926,9 +2926,6 @@ mrb_init_string(mrb_state *mrb)
...
@@ -2926,9 +2926,6 @@ mrb_init_string(mrb_state *mrb)
{
{
struct
RClass
*
s
;
struct
RClass
*
s
;
mrb_static_assert
(
RSTRING_EMBED_LEN_MAX
<
(
1
<<
MRB_STR_EMBED_LEN_BIT
),
"pointer size too big for embedded string"
);
mrb
->
string_class
=
s
=
mrb_define_class
(
mrb
,
"String"
,
mrb
->
object_class
);
/* 15.2.10 */
mrb
->
string_class
=
s
=
mrb_define_class
(
mrb
,
"String"
,
mrb
->
object_class
);
/* 15.2.10 */
MRB_SET_INSTANCE_TT
(
s
,
MRB_TT_STRING
);
MRB_SET_INSTANCE_TT
(
s
,
MRB_TT_STRING
);
...
...
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