Skip to content

Commit

Permalink
Add crap_lib_void_t testing functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaxyM committed Aug 22, 2024
1 parent 7a34f2b commit 70b7a61
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/crap/version
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "version.d/libintpow2.h"
#include "version.d/libsaturationarithmetic.h"
#include "version.d/libtypeidentity.h"
#include "version.d/libvoidt.h"
#include "version.d/packindexing.h"
#include "version.d/unicodecharacters.h"
#include "version.d/variabletemplates.h"
Expand Down
25 changes: 25 additions & 0 deletions include/crap/version.d/libvoidt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ifndef CRAP_VERSION_LIBVOIDT
#define CRAP_VERSION_LIBVOIDT

#ifdef __has_include
#if __has_include(<version>)
#include <version>
#endif
#endif

#ifdef __cpp_lib_void_t
#define crap_lib_void_t __cpp_lib_void_t
#else
#ifdef _MSC_VER
#if _MSC_VER >= 1900
#define crap_lib_void_t _MSVC_LANG
#else
#define crap_lib_void_t 0L
#endif
#else
#define crap_lib_void_t 0L
#endif
#endif

#endif

0 comments on commit 70b7a61

Please sign in to comment.