We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
source_location
1 parent b823706 commit 8140ab9Copy full SHA for 8140ab9
include/cpp2util.h
@@ -20,6 +20,11 @@
20
#ifndef __CPP2_UTIL
21
#define __CPP2_UTIL
22
23
+// If this implementation doesn't support source_location yet, disable it
24
+#if !defined(_MSC_VER) && !defined(__cpp_lib_source_location)
25
+ #undef CPP2_USE_SOURCE_LOCATION
26
+#endif
27
+
28
// If the cppfront user requested -pure-cpp2, this will be set
29
// and we should be using modules only
30
#ifdef CPP2_USE_MODULES
@@ -186,10 +191,6 @@
186
191
#include <optional>
187
192
#include <cstddef>
188
193
189
- // If this compiler doesn't support <source_location> yet, disable it
190
- #if !defined(__cpp_lib_source_location)
- #undef CPP2_USE_SOURCE_LOCATION
- #endif
194
#if defined(CPP2_USE_SOURCE_LOCATION)
195
#include <source_location>
196
#endif
0 commit comments