diff options
author | Pixel <Pixel> | 2002-10-06 18:40:21 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-10-06 18:40:21 +0000 |
commit | 63585e0a059b5f86417b36052b0180b8dae0faca (patch) | |
tree | cbf5f199d352e478b0e55d958f3138414293a14c /includes/Exceptions.h | |
parent | ac538a2d1e822d121a604800f9e3877c227e1af4 (diff) |
Humf...
Diffstat (limited to 'includes/Exceptions.h')
-rw-r--r-- | includes/Exceptions.h | 6 |
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); |