summaryrefslogtreecommitdiff
path: root/includes/Exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Exceptions.h')
-rw-r--r--includes/Exceptions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/Exceptions.h b/includes/Exceptions.h
index 49be085..74ad938 100644
--- a/includes/Exceptions.h
+++ b/includes/Exceptions.h
@@ -24,6 +24,7 @@ class Base {
static void free(unsigned char *& p);
static int pipe(int * p, int flag = 0);
static pid_t fork();
+ static void exit(int);
};
class String;
@@ -49,6 +50,7 @@ void xfree(unsigned char *&);
void * xrealloc(void *, size_t);
int xpipe(int *, int = 0) throw (GeneralException);
pid_t xfork() throw (GeneralException);
+void xexit(int) throw (GeneralException);
INLINE char * Base::strdup(const char * s) {
return xstrdup(s);
@@ -98,6 +100,10 @@ INLINE pid_t Base::fork() {
return xfork();
}
+INLINE void Base::exit(int status) {
+ xexit(status);
+}
+
class MemoryException : public GeneralException {
public:
MemoryException(ssize_t);