summaryrefslogtreecommitdiff
path: root/src/c_fl_error.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-12-18 17:52:21 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-12-18 17:52:21 +1300
commit75c56f8e6927018e3098fe012bb699b72ad0f1f8 (patch)
tree5908621c5638ca62e6593cff06c8997ba8961c14 /src/c_fl_error.cpp
parent43913b53865a86986c1944b13f9ab9fd32fa71e2 (diff)
Added Fl_Browser
Diffstat (limited to 'src/c_fl_error.cpp')
-rw-r--r--src/c_fl_error.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/c_fl_error.cpp b/src/c_fl_error.cpp
index 2b83187..e38481a 100644
--- a/src/c_fl_error.cpp
+++ b/src/c_fl_error.cpp
@@ -5,12 +5,23 @@
#include <FL/Fl.H>
+#include <errno.h>
#include <stdarg.h>
+#include <string.h>
#include "c_fl_error.h"
+// Obtaining general error messages from errno
+
+char * get_error_message() {
+ return strerror(errno);
+}
+
+
+
+
// Exports from Ada
extern "C" void error_warning_hook(const char * m);