sts: add STS_UNREACHABLE_DEFAULT_CASE()
This commit is contained in:
1 parent
609a302e16
commit
add18d868f
23 files changed
+50
-87
No files matched your search
@@ -21,6 +21,8 @@
|
||||
|
||||
#define STS_ASSERT(expr) do { if (!(expr)) { std::abort(); } } while (0)
|
||||
|
||||
#define STS_UNREACHABLE_DEFAULT_CASE() default: std::abort()
|
||||
|
||||
#define NON_COPYABLE(cls) \
|
||||
cls(const cls&) = delete; \
|
||||
cls& operator=(const cls&) = delete
|
||||
|
||||
Reference in new issue
Block a user