2026-05-10 14:09 UTC
"if not" in C.
#include <stdio.h>
#define not(X) (0) {} else if (!(X))
int main() {
_Bool active = false;
if not (active)
{
printf("not active\n");
}
else
{
printf("active\n");
}
}
edit: also
#define not(X) (1) if (!(X))
Replies (0)
No replies.