forked from lix-project/lix
eldritch horrors
992d99592f
(cherry picked from commit 2a8fe9a93837733e9dd9ed5c078734a35b203e14)
Change-Id: I71dadfef6b24d9272b206e9e2c408040559d8a1c
20 lines
271 B
C++
20 lines
271 B
C++
#pragma once
|
|
|
|
#include <exception>
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* Exit the program with a given exit code.
|
|
*/
|
|
class Exit : public std::exception
|
|
{
|
|
public:
|
|
int status;
|
|
Exit() : status(0) { }
|
|
explicit Exit(int status) : status(status) { }
|
|
virtual ~Exit();
|
|
};
|
|
|
|
}
|