1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-11 08:28:30 +00:00

Make stuff to throw childs of runtime_error

This commit is contained in:
Nikolas Garofil 2010-11-15 17:52:42 +01:00
parent c671226a83
commit 5a41152dbb

View File

@ -31,11 +31,19 @@
#define _LOGGING_H #define _LOGGING_H
#include <cstdio> #include <cstdio>
#include <stdexcept>
#include "i18n.h" #include "i18n.h"
#include "mail.h" #include "mail.h"
class fork_throw {}; class fork_throw : public std::runtime_error {
class unknown_arg_throw {}; public:
fork_throw() : std::runtime_error("Fork happened") {}
};
class unknown_arg_throw : public std::runtime_error {
public:
unknown_arg_throw() : std::runtime_error("Unknown argumunt given") {}
};
void clean_up(void *memtofree1, void* memtofree2); void clean_up(void *memtofree1, void* memtofree2);
void clean_up_without_threads(void *memtofree1, void* memtofree2); void clean_up_without_threads(void *memtofree1, void* memtofree2);