mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
fix(handle): update with new STORM_VALIDATE macro
This commit is contained in:
parent
3baccc8168
commit
9039ff45c5
1 changed files with 3 additions and 2 deletions
|
|
@ -3,8 +3,9 @@
|
|||
#include <storm/Error.hpp>
|
||||
|
||||
HOBJECT HandleCreate(CHandleObject* ptr) {
|
||||
STORM_ASSERT(ptr);
|
||||
STORM_VALIDATE(ptr, ERROR_INVALID_PARAMETER, nullptr);
|
||||
STORM_VALIDATE_BEGIN;
|
||||
STORM_VALIDATE(ptr);
|
||||
STORM_VALIDATE_END;
|
||||
|
||||
ptr->m_refcount++;
|
||||
return reinterpret_cast<HOBJECT>(ptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue