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
c86747a2
Commit
c86747a2
authored
Feb 28, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #906 from xxuejie/remove_unused_var
Do not generate test_args_hash variable if it is not used
parents
f586dff5
1f692ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tasks/mrbgems_test.rake
tasks/mrbgems_test.rake
+5
-1
No files found.
tasks/mrbgems_test.rake
View file @
c86747a2
...
@@ -18,7 +18,11 @@ MRuby.each_target do
...
@@ -18,7 +18,11 @@ MRuby.each_target do
f
.
puts
%Q[void GENERATED_TMP_mrb_
#{
g
.
funcname
}
_gem_test(mrb_state *mrb) {]
f
.
puts
%Q[void GENERATED_TMP_mrb_
#{
g
.
funcname
}
_gem_test(mrb_state *mrb) {]
unless
g
.
test_rbfiles
.
empty?
unless
g
.
test_rbfiles
.
empty?
f
.
puts
%Q[ mrb_state *mrb2;]
f
.
puts
%Q[ mrb_state *mrb2;]
f
.
puts
%Q[ mrb_value val1, val2, ary1, ary2, test_args_hash;]
if
g
.
test_args
.
empty?
f
.
puts
%Q[ mrb_value val1, val2, ary1, ary2;]
else
f
.
puts
%Q[ mrb_value val1, val2, ary1, ary2, test_args_hash;]
end
f
.
puts
%Q[ int ai;]
f
.
puts
%Q[ int ai;]
g
.
test_rbfiles
.
count
.
times
do
|
i
|
g
.
test_rbfiles
.
count
.
times
do
|
i
|
f
.
puts
%Q[ ai = mrb_gc_arena_save(mrb);]
f
.
puts
%Q[ ai = mrb_gc_arena_save(mrb);]
...
...
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