summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'macosx')
-rw-r--r--macosx/main.mm13
1 files changed, 13 insertions, 0 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index b07c7f1c8..7880214f9 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -11,6 +11,19 @@ void SigHandler( int signal )
[NSApp terminate: NULL];
}
+/****************************************************************************
+ * hb_error_handler
+ *
+ * Change this to display a dialog box - and maybe move it somewhere else,
+ * this is the only place I could find that looked like C :)
+****************************************************************************/
+extern "C" {
+void hb_error_handler( const char *errmsg )
+{
+ fprintf(stderr, "ERROR: %s\n", errmsg );
+}
+}
+
int main( int argc, const char ** argv )
{
signal( SIGINT, SigHandler );