Skip to content

Commit

Permalink
fix noexcept for new crt
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyDOGE committed Jul 28, 2022
1 parent 9a095d6 commit 91df08e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/tier0/memoverride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ inline void *ReallocUnattributed( void *pMem, size_t nSize )
#define FREE_CALL
#endif

// check for noexcept in crt
#ifndef _CRT_NOEXCEPT
#define _CRT_NOEXCEPT
#endif

extern "C"
{

Expand Down Expand Up @@ -255,7 +260,7 @@ ALLOC_CALL void * __cdecl _recalloc ( void * memblock, size_t count, size_t size
return pMem;
}

size_t _msize_base( void *pMem )
size_t _msize_base( void *pMem ) _CRT_NOEXCEPT
{
return g_pMemAlloc->GetSize(pMem);
}
Expand Down

0 comments on commit 91df08e

Please sign in to comment.