mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-11 00:18:29 +00:00
Make stuff to throw childs of runtime_error
This commit is contained in:
parent
c671226a83
commit
5a41152dbb
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user