Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try/catch mechanism not working for C code. #11

Open
krisjacobs opened this issue Jul 2, 2014 · 0 comments
Open

Try/catch mechanism not working for C code. #11

krisjacobs opened this issue Jul 2, 2014 · 0 comments

Comments

@krisjacobs
Copy link
Member

E.g.
exception_t exception;
TRY {
} catch (exception) {
}

fails with the following error message:

test.c:13:51: error: passing 'exception_t' (aka 'struct exception_t') to parameter of incompatible
type 'exception_t *' (aka 'struct exception_t *'); take the address with &
} } trycatch_exit(); } if (trycatch_catch(exception)) {
^~~~~~~~~
&
/local/Views/swoutrun/Installs/Linux/target/include/trycatch_impl.h:39:33: note: passing argument to
parameter 'exception' here
int trycatch_catch(exception_t *exception);

Note: If we add the '&' to make it 'catch (&exception)', then it compiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant