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
f67631af
Commit
f67631af
authored
Jul 08, 2016
by
Junichi Kajiwara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C doesn't have try-catch
parent
0d9aa830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/mruby/throw.h
include/mruby/throw.h
+2
-2
No files found.
include/mruby/throw.h
View file @
f67631af
...
...
@@ -7,7 +7,7 @@
#ifndef MRB_THROW_H
#define MRB_THROW_H
#if
def MRB_ENABLE_CXX_EXCEPTION
#if
defined(MRB_ENABLE_CXX_EXCEPTION) && defined(__cplusplus)
#define MRB_TRY(buf) do { try {
#define MRB_CATCH(buf) } catch(mrb_jmpbuf_impl e) { if (e != (buf)->impl) { throw e; }
...
...
@@ -40,7 +40,7 @@ typedef mrb_int mrb_jmpbuf_impl;
struct
mrb_jmpbuf
{
mrb_jmpbuf_impl
impl
;
#if
def MRB_ENABLE_CXX_EXCEPTION
#if
defined(MRB_ENABLE_CXX_EXCEPTION) && defined(__cplusplus)
static
mrb_int
jmpbuf_id
;
mrb_jmpbuf
()
:
impl
(
jmpbuf_id
++
)
{}
#endif
...
...
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