From b7511abf1a1f302b5c7ebf50faaf65b62d7bb6ed Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Nov 2021 09:30:25 +0800 Subject: * TextMesh --- Runtime/Utilities/Exception.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Runtime/Utilities/Exception.h') 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 - - -#endif \ No newline at end of file +#define CustomException(Name) \ +class Name : public std::exception \ +{ \ +public: \ + Name(const char* what) \ + : std::exception(what) \ + { \ + } \ +} -- cgit v1.1-26-g67d0