Skip to content

Commit

Permalink
πŸ› fix unwanted build error
Browse files Browse the repository at this point in the history
  • Loading branch information
froz42 committed Nov 5, 2023
1 parent 661032b commit 91f4b6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libft/includes/ft_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdio.h>
#include <sys/time.h>
#include <stdint.h>

typedef struct timeval timeval;

Expand Down Expand Up @@ -131,10 +132,10 @@ extern tests_tracker test_tracker;
" is " C_BOLD C_RED "equal" C_RESET);

#define assert_string_equal(a, b) \
if (!a) \
if ((uintptr_t)NULL == (uintptr_t)a) \
fail("Assertion failed: " C_BOLD "assert_string_equal(" #a ", " #b ") " C_RESET #a \
" is " C_BOLD C_RED "null" C_RESET); \
else if (!b) \
else if ((uintptr_t)NULL == (uintptr_t)b) \
fail("Assertion failed: " C_BOLD "assert_string_equal(" #a ", " #b ") " C_RESET #b \
" is " C_BOLD C_RED "null" C_RESET); \
else if (ft_strcmp(a, b) == 0) \
Expand Down

0 comments on commit 91f4b6c

Please sign in to comment.