Comment by greatgib
3 years ago
I guess you don't know C.
"#" is not a symbol for a comment line but the one for a pre-processor directive. Like #include stdlib.h
In c/c++ you use // and /* */ for comments.
3 years ago
I guess you don't know C.
"#" is not a symbol for a comment line but the one for a pre-processor directive. Like #include stdlib.h
In c/c++ you use // and /* */ for comments.
I’ve known C for close to two decades, thank you. I’m using the not at all well defined term “magic comment” to loosely refer to everything that’s not strictly speaking code but has special meaning, which include pre-processor directives.
cpp is definitely a well-hated part of C.
> I’ve known C for close to two decades, thank you. I’m using the not at all well defined term “magic comment”
Please forgive those of us who've been using C since the 80's, or earlier, from assuming you don't know C when you invent your own terminology for preprocessor directives.
This is not a preprocessor directive though, from reading the post I don’t think cpp is expanding the #embed into an array initializer, otherwise there’s no performance benefit at all.
4 replies →