From ca8517f146b08bb4df1669218579223ac7bfbcae Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 19 Oct 2024 13:05:57 +0800 Subject: [PATCH] added NO_COPY_NO_MOVE macro --- inc/hgl/platform/Platform.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/hgl/platform/Platform.h b/inc/hgl/platform/Platform.h index bc7b370..499f633 100644 --- a/inc/hgl/platform/Platform.h +++ b/inc/hgl/platform/Platform.h @@ -283,5 +283,8 @@ namespace hgl #define NO_MOVE(className) className(className &&)=delete; \ className &operator=(className &&)=delete; + #define NO_COPY_NO_MOVE(className) NO_COPY(className) \ + NO_MOVE(className) + }//namespace hgl #endif//HGL_PLATFORM_INCLUDE