git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73339
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return g_string_free (string, FALSE);
}
+#endif // wxUSE_STACKWALKER
+
void gtk_assert_dialog_set_message(GtkAssertDialog *dlg, const gchar *msg)
{
/* prepend and append the <b> tag
g_free (escaped_msg);
}
+#if wxUSE_STACKWALKER
+
void gtk_assert_dialog_set_backtrace_callback(GtkAssertDialog *assertdlg,
GtkAssertDialogStackFrameCallback callback,
void *userdata)
// wxWidgets idle processing to work correctly which might not be the
// case when assert happens
GtkWidget *dialog = gtk_assert_dialog_new();
-#if wxUSE_STACKWALKER
gtk_assert_dialog_set_message(GTK_ASSERT_DIALOG(dialog), msg.mb_str());
+#if wxUSE_STACKWALKER
// save the current stack ow...
StackDump dump(GTK_ASSERT_DIALOG(dialog));
dump.SaveStack(100); // showing more than 100 frames is not very useful