Skip to content

Commit 6c82428

Browse files
author
kevyuu
committed
Remove NBL_CONSTEXPR_STATIC_INLINE_VAR macro
1 parent 062ce7b commit 6c82428

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#define NBL_CONSTEXPR_STATIC constexpr static
1515
#define NBL_CONSTEXPR_STATIC_INLINE constexpr static inline
1616
#define NBL_CONSTEXPR_INLINE_FUNC constexpr inline
17-
#define NBL_CONSTEXPR_INLINE_VAR constexpr inline
1817
#define NBL_CONSTEXPR_FORCED_INLINE_FUNC NBL_FORCE_INLINE constexpr
1918
#define NBL_CONST_MEMBER_FUNC const
2019
#define NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR constexpr inline
@@ -51,7 +50,6 @@ namespace nbl::hlsl
5150
#define NBL_CONSTEXPR_STATIC const static
5251
#define NBL_CONSTEXPR_STATIC_INLINE const static
5352
#define NBL_CONSTEXPR_INLINE_FUNC inline
54-
#define NBL_CONSTEXPR_INLINE_VAR static const
5553
#define NBL_CONSTEXPR_FORCED_INLINE_FUNC inline
5654
#define NBL_CONST_MEMBER_FUNC
5755
#define NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR const static

include/nbl/builtin/hlsl/emulated/int64_t.hlsl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,13 @@ struct minus<T NBL_PARTIAL_REQ_BOT(concepts::ImitationIntegral64Scalar<T>) >
331331
};
332332

333333
template<>
334-
NBL_CONSTEXPR_INLINE_VAR emulated_uint64_t plus<emulated_uint64_t>::identity = _static_cast<emulated_uint64_t>(uint64_t(0));
334+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_uint64_t plus<emulated_uint64_t>::identity = _static_cast<emulated_uint64_t>(uint64_t(0));
335335
template<>
336-
NBL_CONSTEXPR_INLINE_VAR emulated_int64_t plus<emulated_int64_t>::identity = _static_cast<emulated_int64_t>(int64_t(0));
336+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_int64_t plus<emulated_int64_t>::identity = _static_cast<emulated_int64_t>(int64_t(0));
337337
template<>
338-
NBL_CONSTEXPR_INLINE_VAR emulated_uint64_t minus<emulated_uint64_t>::identity = _static_cast<emulated_uint64_t>(uint64_t(0));
338+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_uint64_t minus<emulated_uint64_t>::identity = _static_cast<emulated_uint64_t>(uint64_t(0));
339339
template<>
340-
NBL_CONSTEXPR_INLINE_VAR emulated_int64_t minus<emulated_int64_t>::identity = _static_cast<emulated_int64_t>(int64_t(0));
340+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_int64_t minus<emulated_int64_t>::identity = _static_cast<emulated_int64_t>(int64_t(0));
341341

342342
// --------------------------------- Compound assignment operators ------------------------------------------
343343
// Specializations of the structs found in functional.hlsl
@@ -371,13 +371,13 @@ struct minus_assign<T NBL_PARTIAL_REQ_BOT(concepts::ImitationIntegral64Scalar<T>
371371
};
372372

373373
template<>
374-
NBL_CONSTEXPR_INLINE_VAR emulated_uint64_t plus_assign<emulated_uint64_t>::identity = plus<emulated_uint64_t>::identity;
374+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_uint64_t plus_assign<emulated_uint64_t>::identity = plus<emulated_uint64_t>::identity;
375375
template<>
376-
NBL_CONSTEXPR_INLINE_VAR emulated_int64_t plus_assign<emulated_int64_t>::identity = plus<emulated_int64_t>::identity;
376+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_int64_t plus_assign<emulated_int64_t>::identity = plus<emulated_int64_t>::identity;
377377
template<>
378-
NBL_CONSTEXPR_INLINE_VAR emulated_uint64_t minus_assign<emulated_uint64_t>::identity = minus<emulated_uint64_t>::identity;
378+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_uint64_t minus_assign<emulated_uint64_t>::identity = minus<emulated_uint64_t>::identity;
379379
template<>
380-
NBL_CONSTEXPR_INLINE_VAR emulated_int64_t minus_assign<emulated_int64_t>::identity = minus<emulated_int64_t>::identity;
380+
NBL_CONSTEXPR_INLINE_NSPC_SCOPE_VAR emulated_int64_t minus_assign<emulated_int64_t>::identity = minus<emulated_int64_t>::identity;
381381

382382
// --------------------------------- Unary operators ------------------------------------------
383383
// Specializations of the structs found in functional.hlsl

0 commit comments

Comments
 (0)