-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededimproveNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requestedtodounimplemented (but advertised) part of the toolunimplemented (but advertised) part of the tool
Description
Rationales
Discussion (with poll to vote on alternative solutions).
Background
https://github.com/SwuduSusuwu/SusuLib/blob/preview/cxx/Macros.hxx has numerous such macros, but due to the problems (listed above), limited those to just use on structures which already have to use macros:
SUSUWU_PREFER_C(if preference is C;#define SUSUWU_PREFER_C true. If not;#define SUSUWU_PREFER_C false.)SUSUWU_IF_CPLUSPLUS(TRUE, FALSE)(if__cplusplus;#define SUSUWU_IF_CPLUSPLUS(TRUE, FALSE) TRUE. If not;#define SUSUWU_IF_CPLUSPLUS(TRUE, FALSE) FALSE.)SUSUWU_PRINT
Due to the discussion's mentioned disadvantages, have not used macros such as the SUSUWU_CAST macro above.
Related to this:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededimproveNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requestedtodounimplemented (but advertised) part of the toolunimplemented (but advertised) part of the tool