simplify conditional logic with constructed macro names

based on https://make.mad-scientist.net/constructed-macro-names/
This commit is contained in:
Vinzenz Schroeter 2025-05-28 11:49:44 +02:00
parent e7426bdabe
commit 2d937b9c3c
3 changed files with 75 additions and 84 deletions

View file

@ -16,7 +16,7 @@ void handle_error(const char *msg) {
}
int main(int argc, char **argv) {
init_env_logger();
//init_env_logger();
int udp_socket = socket(AF_INET, SOCK_DGRAM, 0);
if (udp_socket == -1)