Commit 86831d54 authored by take_cheeze's avatar take_cheeze

move jmpbuf_id to generated file

parent 1985f1ac
......@@ -432,10 +432,6 @@ mrb_sys_fail(mrb_state *mrb, const char *mesg)
}
}
#ifdef MRB_ENABLE_CXX_EXCEPTION
mrb_int mrb_jmpbuf::jmpbuf_id = 0;
#endif
void
mrb_init_exception(mrb_state *mrb)
{
......
......@@ -22,6 +22,9 @@ MRuby.each_target do
extern "C" {
#include "#{MRUBY_ROOT}/#{t.prerequisites.first}"
}
#{v == 'error'? 'mrb_int mrb_jmpbuf::jmpbuf_id = 0;' : ''}
EOS
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment