aboutsummaryrefslogtreecommitdiff
path: root/include/singleton.hpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-12-14 15:27:32 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-12-14 15:45:21 +0200
commitd970b1e28a11223b6dd1cd4a32918cfa9271e283 (patch)
treef2978d0d0f4f31cc3b6e5d65aec35173ca9eda74 /include/singleton.hpp
parentUpdate PKGBUILD to build with cmake (diff)
downloadsmolbote-d970b1e28a11223b6dd1cd4a32918cfa9271e283.tar.xz
Code cleanup
Diffstat (limited to 'include/singleton.hpp')
-rw-r--r--include/singleton.hpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/singleton.hpp b/include/singleton.hpp
deleted file mode 100644
index d13e29e..0000000
--- a/include/singleton.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef SMOLBOTE_SINGLETON_HPP
-#define SMOLBOTE_SINGLETON_HPP
-
-/*
- * Clang consumed semantics
- * States can be: unconsumed, consumed, unknown
- * Mark classes with consumable(unconsumed)
- * Mark constructors with return_typestate(unconsumed)
- * Mark invalidating functions with set_typestate(consumed)
- */
-
-#if defined(__clang__)
-#define consumable(X) [[clang::consumable(X)]]
-#define return_typestate(X) [[clang::return_typestate(X)]]
-#define set_typestate(X) [[clang::set_typestate(X)]]
-#define callable_when(X) [[clang::callable_when(X)]]
-#define param_typestate(X) [[clang::param_typestate(X)]]
-
-#else
-#define consumable(X)
-#define return_typestate(X)
-#define set_typestate(X)
-#define callable_when(X)
-#define param_typestate(X)
-#endif
-
-#endif // SMOLBOTE_SINGLETON_HPP