aboutsummaryrefslogtreecommitdiffstats
path: root/gb.h
diff options
context:
space:
mode:
authorGravatar gingerBill 2015-12-17 12:27:46 +0000
committerGravatar gingerBill 2015-12-17 12:27:46 +0000
commitea11e036f3d181a65851085f21203d4b83fdb29b (patch)
tree0e55a641c1b090d1701296faa4279b56e3c8eeea /gb.h
parentChange conventions slightly (diff)
parentRemove C++ specific macros (diff)
Merge remote-tracking branch 'origin/master'
# Conflicts: # gb.h
Diffstat (limited to 'gb.h')
-rw-r--r--gb.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/gb.h b/gb.h
index fbfa4a9..3b76232 100644
--- a/gb.h
+++ b/gb.h
@@ -1,4 +1,4 @@
-/* gb.h - v0.04 - public domain C helper library - no warranty implied; use at your own risk */
+/* gb.h - v0.04a - public domain C helper library - no warranty implied; use at your own risk */
/* (Experimental) A C helper library geared towards game development */
/*
@@ -15,8 +15,12 @@
/*
Version History:
+<<<<<<< HEAD
0.04a - Change conventions to be in keeping with `gb.hpp`
+=======
+ 0.04a - Remove C++ specific macros
+>>>>>>> origin/master
0.04 - Allow for no <stdio.h>
0.03 - Allocators can be passed to gb_alloc/free/etc. without cast using `typedef void* gb_Allocator_Ptr`
0.02 - Implement all functions (from gb.hpp)
@@ -149,23 +153,6 @@ extern "C" {
#define GB_IS_POWER_OF_TWO(x) ((x) != 0) && !((x) & ((x) - 1))
-
-#if !defined(GB_HAS_NO_CONSTEXPR)
- #if defined(_GNUC_VER) && _GNUC_VER < 406 /* Less than gcc 4.06 */
- #define GB_HAS_NO_CONSTEXPR 1
- #elif defined(_MSC_VER) && _MSC_VER < 1900 /* Less than Visual Studio 2015/MSVC++ 14.0 */
- #define GB_HAS_NO_CONSTEXPR 1
- #elif !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L
- #define GB_HAS_NO_CONSTEXPR 1
- #endif
-#endif
-
-#if defined(GB_HAS_NO_CONSTEXPR)
- #define GB_CONSTEXPR
-#else
- #define GB_CONSTEXPR constexpr
-#endif
-
#ifndef GB_FORCE_INLINE
#if defined(_MSC_VER)
#define GB_FORCE_INLINE __forceinline