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
ab779b7a
Commit
ab779b7a
authored
Jul 08, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `mrb_print_error` to print exception instead of `mrb_p`.
parent
5bb0a1fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tasks/mrbgems_test.rake
tasks/mrbgems_test.rake
+2
-2
test/init_mrbtest.c
test/init_mrbtest.c
+1
-1
No files found.
tasks/mrbgems_test.rake
View file @
ab779b7a
...
...
@@ -55,7 +55,7 @@ MRuby.each_target do
f
.
puts
%Q[ mrb_load_irep(mrb2, gem_test_irep_
#{
g
.
funcname
}
_preload);]
end
f
.
puts
%Q[ if (mrb2->exc) {]
f
.
puts
%Q[ mrb_p
(mrb2, mrb_obj_value(mrb2->exc)
);]
f
.
puts
%Q[ mrb_p
rint_error(mrb2
);]
f
.
puts
%Q[ exit(EXIT_FAILURE);]
f
.
puts
%Q[ }]
f
.
puts
%Q[ mrb_const_set(mrb2, mrb_obj_value(mrb2->object_class), mrb_intern_lit(mrb2, "GEMNAME"), mrb_str_new(mrb2, "
#{
g
.
name
}
",
#{
g
.
name
.
length
}
));]
...
...
@@ -74,7 +74,7 @@ MRuby.each_target do
f
.
puts
%Q[ mrb_load_irep(mrb2, gem_test_irep_
#{
g
.
funcname
}
_
#{
i
}
);]
f
.
puts
%Q[ if (mrb2->exc) {]
f
.
puts
%Q[ mrb_p
(mrb2, mrb_obj_value(mrb2->exc)
);]
f
.
puts
%Q[ mrb_p
rint_error(mrb2
);]
f
.
puts
%Q[ exit(EXIT_FAILURE);]
f
.
puts
%Q[ }]
f
.
puts
%Q[ ]
...
...
test/init_mrbtest.c
View file @
ab779b7a
...
...
@@ -16,7 +16,7 @@ mrb_init_mrbtest(mrb_state *mrb)
mrbgemtest_init
(
mrb
);
#endif
if
(
mrb
->
exc
)
{
mrb_p
(
mrb
,
mrb_obj_value
(
mrb
->
exc
)
);
mrb_p
rint_error
(
mrb
);
exit
(
EXIT_FAILURE
);
}
}
...
...
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