diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-10-16 10:51:55 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-10-16 18:46:15 +0900 |
| commit | c3710dbb969948928f01c17a480e14a86b30fe5a (patch) | |
| tree | bf1a769f2bd814db004d1cd0e30336b9bf9c5de8 /tasks | |
| parent | 6b0c22e395b9e126fa3f8ff9112deb66af084b60 (diff) | |
| download | mruby-c3710dbb969948928f01c17a480e14a86b30fe5a.tar.gz mruby-c3710dbb969948928f01c17a480e14a86b30fe5a.zip | |
Fix a compile error on zero mrbgem case.
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mrbgems.rake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tasks/mrbgems.rake b/tasks/mrbgems.rake index 65368c303..1b964524c 100644 --- a/tasks/mrbgems.rake +++ b/tasks/mrbgems.rake @@ -34,11 +34,13 @@ MRuby.each_target do f.puts %Q[#include <mruby.h>] f.puts %Q[] f.write gem_func_decls + unless gem_final_calls.empty? f.puts %Q[] - f.puts %Q[static void] - f.puts %Q[mrb_final_mrbgems(mrb_state *mrb) {] - f.write gem_final_calls - f.puts %Q[}] + f.puts %Q[static void] + f.puts %Q[mrb_final_mrbgems(mrb_state *mrb) {] + f.write gem_final_calls + f.puts %Q[}] + end f.puts %Q[] f.puts %Q[void] f.puts %Q[mrb_init_mrbgems(mrb_state *mrb) {] |
