mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-01 18:16:14 +02:00
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();
|
||
|
};
|
||
|
|
||
|
}
|