# HG changeset patch # User Paul Boddie # Date 1479514292 -3600 # Node ID 87c39b0ec1926e36928ba570ab203530592783d2 # Parent 7e1a6b2d69b816d3652fc1c736f54cb18c2905af Make the exception available for debugging purposes. diff -r 7e1a6b2d69b8 -r 87c39b0ec192 generator.py --- a/generator.py Fri Nov 18 23:48:13 2016 +0100 +++ b/generator.py Sat Nov 19 01:11:32 2016 +0100 @@ -908,6 +908,7 @@ print >>f_code, """\ int main(int argc, char *argv[]) { + __exc __tmp_exc; __Try {""" @@ -924,7 +925,7 @@ print >>f_code, """\ return 0; } - __Catch_anonymous + __Catch(__tmp_exc) { fprintf(stderr, "Program terminated due to exception.\\n"); return 1;