summaryrefslogtreecommitdiff
path: root/src/helpers.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers.hpp')
-rw-r--r--src/helpers.hpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/helpers.hpp b/src/helpers.hpp
index 2fed51582..5f378803a 100644
--- a/src/helpers.hpp
+++ b/src/helpers.hpp
@@ -6,8 +6,6 @@
/** @file helpers.hpp */
#include "macros.h"
-#ifdef __cplusplus
-
/** When allocating using malloc/calloc in C++ it is usually needed to cast the return value
* from void* to the proper pointer type. Another alternative would be MallocT<> as follows */
template <typename T> FORCEINLINE T* MallocT(size_t num_elements)
@@ -161,12 +159,4 @@ template <typename T> FORCEINLINE T ToggleBitT(T t, int bit_index)
return (T)val;
}
-#else // __cplusplus
-
-#define DECLARE_POSTFIX_INCREMENT(E)
-#define DECLARE_ENUM_AS_BIT_SET(E)
-#define DECLARE_ENUM_AS_BIT_INDEX(E1,E2)
-
-#endif // __cplusplus
-
#endif /* HELPERS_HPP */