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
52d654b9
Commit
52d654b9
authored
Jan 07, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #701 from monaka/pr-remove-debug-macros
Remove debug macros from mruby.h
parents
4258d773
0f99322f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
include/mruby.h
include/mruby.h
+0
-10
src/gc.c
src/gc.c
+2
-0
src/vm.c
src/vm.c
+5
-1
No files found.
include/mruby.h
View file @
52d654b9
...
...
@@ -241,16 +241,6 @@ void mrb_write_barrier(mrb_state *, struct RBasic*);
#define MRUBY_VERSION "Rite"
#ifdef DEBUG
#undef DEBUG
#endif
#if 0
#define DEBUG(x) x
#else
#define DEBUG(x)
#endif
mrb_value
mrb_check_convert_type
(
mrb_state
*
mrb
,
mrb_value
val
,
mrb_int
type
,
const
char
*
tname
,
const
char
*
method
);
mrb_value
mrb_any_to_s
(
mrb_state
*
mrb
,
mrb_value
obj
);
const
char
*
mrb_obj_classname
(
mrb_state
*
mrb
,
mrb_value
obj
);
...
...
src/gc.c
View file @
52d654b9
...
...
@@ -147,8 +147,10 @@ gettimeofday_time(void)
#ifdef GC_DEBUG
#include <assert.h>
#define gc_assert(expect) assert(expect)
#define DEBUG(x) (x)
#else
#define gc_assert(expect) ((void)0)
#define DEBUG(x)
#endif
#define GC_STEP_SIZE 1024
...
...
src/vm.c
View file @
52d654b9
...
...
@@ -49,7 +49,11 @@ The value below allows about 60000 recursive calls in the simplest case. */
#define MRB_STACK_MAX ((1<<18) - MRB_STACK_GROWTH)
#endif
#ifdef VM_DEBUG
# define DEBUG(x) (x)
#else
# define DEBUG(x)
#endif
static
inline
void
stack_copy
(
mrb_value
*
dst
,
const
mrb_value
*
src
,
size_t
size
)
...
...
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