Skip to content

Commit ac2070e

Browse files
author
kevyuu
committed
Remove NBL_ASSERT
1 parent 791b2b9 commit ac2070e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/nbl/builtin/hlsl/cpp_compat/basic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#define NBL_CONSTEXPR_OOL_MEMBER constexpr
2222
#define NBL_CONSTEXPR_INLINE_OOL_MEMBER constexpr inline
2323
#define NBL_IF_CONSTEXPR(...) if constexpr (__VA_ARGS__)
24-
#define NBL_ASSERT(...) assert(__VA_ARGS__)
2524

2625
namespace nbl::hlsl
2726
{
@@ -58,7 +57,6 @@ namespace nbl::hlsl
5857
#define NBL_CONSTEXPR_OOL_MEMBER const
5958
#define NBL_CONSTEXPR_INLINE_OOL_MEMBER const
6059
#define NBL_IF_CONSTEXPR(...) if (__VA_ARGS__)
61-
#define NBL_ASSERT(...)
6260

6361
namespace nbl
6462
{

include/nbl/builtin/hlsl/morton.hlsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ struct code
362362
{
363363
this_t retVal;
364364
NBL_ASSERT((impl::verifyAnyBitIntegralVec<I, D, Bits >(cartesian)));
365+
assert((impl::verifyAnyBitIntegralVec<I, D, Bits >(cartesian)));
365366
using decode_t = typename transcoder_t::decode_t;
366367
retVal.value = transcoder_t::encode(_static_cast<decode_t>(cartesian));
367368
return retVal;

0 commit comments

Comments
 (0)