diff --git a/sakura_core/config/build_config.cpp b/sakura_core/config/build_config.cpp index ed53aec770..82cff965b9 100644 --- a/sakura_core/config/build_config.cpp +++ b/sakura_core/config/build_config.cpp @@ -35,12 +35,12 @@ void* operator new[](size_t nSize) return p; } -void operator delete(void* p) +void operator delete(void* p) noexcept { ::free(p); } -void operator delete[](void* p) +void operator delete[](void* p) noexcept { ::free(p); } diff --git a/sakura_core/config/build_config.h b/sakura_core/config/build_config.h index 089792962c..ac5a89e71b 100644 --- a/sakura_core/config/build_config.h +++ b/sakura_core/config/build_config.h @@ -67,7 +67,7 @@ static const bool UNICODE_BOOL=false; //newされた領域をわざと汚すかどうか (デバッグ用) #ifdef _DEBUG -#define FILL_STRANGE_IN_NEW_MEMORY +# define FILL_STRANGE_IN_NEW_MEMORY #endif @@ -95,8 +95,8 @@ static const bool UNICODE_BOOL=false; #endif #endif void* operator new[](size_t nSize); - void operator delete(void* p); - void operator delete[](void* p); + void operator delete(void* p) noexcept; + void operator delete[](void* p) noexcept; #endif