1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-05 13:38:33 +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
#include <cstdio>
#include <stdexcept>
#include "i18n.h"
#include "mail.h"
class fork_throw {};
class unknown_arg_throw {};
class fork_throw : public std::runtime_error {
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_without_threads(void *memtofree1, void* memtofree2);