Skip to content

Commit

Permalink
Provide a stubbed version of wxHandleFatalExceptions based on wxUSE_O…
Browse files Browse the repository at this point in the history
…N_FATAL_EXCEPTION
  • Loading branch information
RobinD42 committed Jan 18, 2021
1 parent 3197c46 commit 91a205f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions etg/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,16 @@ def run():

#-------------------------------------------------------

module.find('wxHandleFatalExceptions').setCppCode("""\
#if wxUSE_ON_FATAL_EXCEPTION
return wxHandleFatalExceptions(doIt);
#else
wxLogInfo("This build of wxWidgets does not support wxHandleFatalExceptions.");
return false;
#endif
""")

#-------------------------------------------------------

module.addHeaderCode("""\
enum wxAppAssertMode {
Expand Down

0 comments on commit 91a205f

Please sign in to comment.