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.
1 parent 326d3a0 commit ef438e4Copy full SHA for ef438e4
src/kernel.hpp
@@ -10,6 +10,7 @@ string get_opencl_c_code() {
10
r = replace(r, "#ifdef\n", "#ifdef "); // except for the arguments after some preprocessor options that need to be in the same line
11
r = replace(r, "#ifndef\n", "#ifndef ");
12
r = replace(r, "#define\n", "#define "); // #define with two arguments will not work
13
+ r = replace(r, "#undef\n", "#undef ");
14
r = replace(r, "#if\n", "#if "); // don't leave any spaces in arguments
15
r = replace(r, "#elif\n", "#elif "); // don't leave any spaces in arguments
16
r = replace(r, "#pragma\n", "#pragma ");
0 commit comments