mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
0bcf9e28fc
There are 3 levels of C++ exception handling: * default - no C++ exception (use setjmp/longjmp) * enable_cxx_exception (use C++ exceptions with C ABI) * enable_cxx_abi (use C++ ABI including exceptions)
11 lines
385 B
Ruby
11 lines
385 B
Ruby
MRuby::Gem::Specification.new('mruby-error') do |spec|
|
|
spec.license = 'MIT'
|
|
spec.author = 'mruby developers'
|
|
spec.summary = 'extensional error handling'
|
|
|
|
if build.cxx_exception_enabled?
|
|
@objs << build.compile_as_cxx("#{spec.dir}/src/exception.c", "#{spec.build_dir}/src/exception.cxx")
|
|
@objs.delete_if { |v| v == objfile("#{spec.build_dir}/src/exception") }
|
|
end
|
|
end
|