Skip to content

Commit ced41bd

Browse files
committed
chore(build): fix compatibility with CMake 4.x
1 parent 0a260b7 commit ced41bd

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.1)
1+
cmake_minimum_required(VERSION 3.1...3.5)
22

33
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
44
message(FATAL_ERROR

common/Handle.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#include <storm/Error.hpp>
44

55
HOBJECT HandleCreate(CHandleObject* ptr) {
6-
STORM_ASSERT(ptr);
7-
STORM_VALIDATE(ptr, ERROR_INVALID_PARAMETER, nullptr);
6+
STORM_VALIDATE_BEGIN;
7+
STORM_VALIDATE(ptr);
8+
STORM_VALIDATE_END;
89

910
ptr->m_refcount++;
1011
return reinterpret_cast<HOBJECT>(ptr);

lib/system

lib/typhoon

0 commit comments

Comments
 (0)