Make a preprocessor string macro NOT expand things within the string
prog.c
has
Make a preprocessor string macro NOT expand things within the string
prog.c
has
Make a preprocessor string macro NOT expand things within the string
prog.c
has
Make a preprocessor string macro NOT expand things within the string
prog.c
has
Possible to split word into char list in the C preprocessor
I have a preprocessor macro, called INSTR(…). It takes in a comma separated list of chars, and outputs a compile time constant number depending on the input. This macro currently works, and can be used like this:
Evaluation of defined(x) in a `#pragma message` output string
For debugging purposes, I am trying to output information on whether certain symbols are defined, but without having to impair my code readability with too many #if defined()
blocks. I tried using the defined()
operator in text output by #pragma message
like so:
How do I `include` custom headers which is inside `includes/` inside `functions/create_note.c`
So this is my source tree for a simple note-taking app I’m creating.
Human readable acess to member function
Due to the lack of reflection in current C++, I found myself writing the following JSONDUMP()
macro for data debugging:
Concatenate character macro to string literal
I have defined a character macro using #define OPT_SORT_NONE 'S'
.