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 24205f9 commit e8be6deCopy full SHA for e8be6de
tools/pioasm/c_sdk_output.cpp
@@ -79,7 +79,7 @@ struct c_sdk_output : public output_format {
79
fprintf(out, "#endif\n");
80
fprintf(out, "\n");
81
82
- fprintf(out, "#ifdef __cplusplus\n");
+ fprintf(out, "#ifdef __cpp_constexpr\n");
83
fprintf(out, "#define PIO_CONST constexpr\n");
84
fprintf(out, "#else\n");
85
fprintf(out, "#define PIO_CONST const\n");
0 commit comments