Skip to content

Conversation

RedBeard0531
Copy link
Contributor

I tried to match the behavior of the c codegen. Let me know if there is a better place to put this code.

@Araq
Copy link
Member

Araq commented Dec 10, 2017

This requires a test case.

@RedBeard0531
Copy link
Contributor Author

@Araq is there a good example test of fatal behavior I can base it on? Also, how do I mark the test as c++ only?

@dom96
Copy link
Contributor

dom96 commented Jan 1, 2018

You can probably base it on this: https://github.com/nim-lang/Nim/blob/devel/tests/exception/tunhandledexc.nim

And these C++ tests show how to target the cpp backend https://github.com/nim-lang/Nim/tree/devel/tests/cpp :)

@RedBeard0531 RedBeard0531 force-pushed the cpp_unhandled_exception branch from 125b3de to f474749 Compare January 10, 2018 04:00
@RedBeard0531
Copy link
Contributor Author

@Araq test added

@dom96
Copy link
Contributor

dom96 commented Jan 10, 2018

Tests fail. Also, this doesn't work on assertion failures (I tested it).

@Araq
Copy link
Member

Araq commented Feb 27, 2018

Merged manually.

@Araq Araq closed this Feb 27, 2018
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

Successfully merging this pull request may close these issues.

3 participants