path: root/beos
diff options
authorVincent Sanders <>2014-10-26 12:42:53 +0000
committerVincent Sanders <>2014-10-26 12:42:53 +0000
commit14e282948996f75e87a14ab90f4b3ed54d9d6ad7 (patch)
tree7f78ad2cc5c9965f6a329c81c025d1c240eb4f87 /beos
parenta913af5cf54400b441f3b1fbfc5d508cf85fea43 (diff)
remove the die API from the core.
The die() API for abnormal termination does not belong within the core of netsurf and instead errors are propogated back to the callers. This is the final part of this change and the API is now only used within some parts of the frontends
Diffstat (limited to 'beos')
1 files changed, 9 insertions, 0 deletions
diff --git a/beos/gui.h b/beos/gui.h
index 6689bd81a..215cda8b1 100644
--- a/beos/gui.h
+++ b/beos/gui.h
@@ -67,3 +67,12 @@ void nsbeos_gui_view_source(struct hlcache_handle *content);
image_id nsbeos_find_app_path(char *path);
void nsbeos_update_system_ui_colors(void);
+ * Cause an abnormal program termination.
+ *
+ * \note This never returns and is intended to terminate without any cleanup.
+ *
+ * \param error The message to display to the user.
+ */
+void die(const char * const error) __attribute__ ((noreturn));