diff options
Diffstat (limited to 'Runtime/Utilities')
-rw-r--r-- | Runtime/Utilities/Exception.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Runtime/Utilities/Exception.h b/Runtime/Utilities/Exception.h index bd73c6b..3795bc6 100644 --- a/Runtime/Utilities/Exception.h +++ b/Runtime/Utilities/Exception.h @@ -1,6 +1,12 @@ -#ifndef EXCEPTION_H -#define EXCEPTION_H +#pragma once +#include <exception> - - -#endif
\ No newline at end of file +#define CustomException(Name) \ +class Name : public std::exception \ +{ \ +public: \ + Name(const char* what) \ + : std::exception(what) \ + { \ + } \ +} |