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
54eb08e2
Commit
54eb08e2
authored
Feb 01, 2013
by
Masamitsu MURASE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ";" suffix from function-type macros.
parent
c7f29117
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
include/mruby.h
include/mruby.h
+2
-2
include/mruby/khash.h
include/mruby/khash.h
+1
-1
include/mruby/value.h
include/mruby/value.h
+2
-2
src/math.c
src/math.c
+1
-1
No files found.
include/mruby.h
View file @
54eb08e2
...
...
@@ -231,11 +231,11 @@ void mrb_gc_arena_restore(mrb_state*,int);
void
mrb_gc_mark
(
mrb_state
*
,
struct
RBasic
*
);
#define mrb_gc_mark_value(mrb,val) do {\
if (mrb_type(val) >= MRB_TT_OBJECT) mrb_gc_mark((mrb), mrb_object(val));\
} while (0)
;
} while (0)
void
mrb_field_write_barrier
(
mrb_state
*
,
struct
RBasic
*
,
struct
RBasic
*
);
#define mrb_field_write_barrier_value(mrb, obj, val) do{\
if ((val.tt >= MRB_TT_OBJECT)) mrb_field_write_barrier((mrb), (obj), mrb_object(val));\
} while (0)
;
} while (0)
void
mrb_write_barrier
(
mrb_state
*
,
struct
RBasic
*
);
mrb_value
mrb_check_convert_type
(
mrb_state
*
mrb
,
mrb_value
val
,
mrb_int
type
,
const
char
*
tname
,
const
char
*
method
);
...
...
include/mruby/khash.h
View file @
54eb08e2
...
...
@@ -41,7 +41,7 @@ static const uint8_t __m[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
v |= v >> 8;\
v |= v >> 16;\
v++;\
} while (0)
;
} while (0)
/* declare struct kh_xxx and kh_xxx_funcs
...
...
include/mruby/value.h
View file @
54eb08e2
...
...
@@ -55,7 +55,7 @@ typedef struct mrb_value {
#define MRB_SET_VALUE(o, ttt, attr, v) do {\
(o).tt = ttt;\
(o).attr = v;\
} while (0)
;
} while (0)
static
inline
mrb_value
mrb_float_value
(
mrb_float
f
)
...
...
@@ -131,7 +131,7 @@ typedef struct mrb_value {
#define MRB_SET_VALUE(o, tt, attr, v) do {\
(o).ttt = mrb_mktt(tt);\
(o).attr = v;\
} while (0)
;
} while (0)
static
inline
mrb_value
mrb_float_value
(
mrb_float
f
)
...
...
src/math.c
View file @
54eb08e2
...
...
@@ -11,7 +11,7 @@
#include <math.h>
#define domain_error(msg) \
mrb_raise(mrb, E_RANGE_ERROR, "Numerical argument is out of domain - " #msg)
;
mrb_raise(mrb, E_RANGE_ERROR, "Numerical argument is out of domain - " #msg)
/* math functions not provided under Microsoft Visual C++ */
#ifdef _MSC_VER
...
...
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