Skip to content

Commit f40132b

Browse files
authored
[SYCL][NFC] Move __SYCL_STRINGIFY definition from headers (#10511)
The only real use of the macro is in config.cpp file. The macro was used in sycl/detail/common.hpp, but the use is commented out.
1 parent e7aebcd commit f40132b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sycl/include/sycl/detail/defines_elementary.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,5 @@
7878
#endif
7979
#endif
8080

81-
// Stringify an argument to pass it in _Pragma directive below.
82-
#ifndef __SYCL_STRINGIFY
83-
#define __SYCL_STRINGIFY(x) #x
84-
#endif // __SYCL_STRINGIFY
85-
8681
static_assert(__cplusplus >= 201703L,
8782
"DPCPP does not support C++ version earlier than C++17.");

sycl/source/detail/config.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ namespace detail {
2424
#define SYCL_CONFIG_FILE_NAME "sycl.conf"
2525
#endif // SYCL_CONFIG_FILE_NAME
2626

27+
// Stringify an argument to pass it in _Pragma directive below.
28+
#ifndef __SYCL_STRINGIFY
29+
#define __SYCL_STRINGIFY(x) #x
30+
#endif // __SYCL_STRINGIFY
31+
2732
#define CONFIG(Name, MaxSize, CompileTimeDef) \
2833
const char *SYCLConfigBase<Name>::MValueFromFile = nullptr; \
2934
char SYCLConfigBase<Name>::MStorage[MaxSize + 1]; \

0 commit comments

Comments
 (0)