simplify conditional logic with constructed macro names
based on https://make.mad-scientist.net/constructed-macro-names/
This commit is contained in:
parent
e7426bdabe
commit
2d937b9c3c
3 changed files with 75 additions and 84 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue