1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-01-10 08:27:48 +05:30

C: clock-malfunction-imitation.c: reformat macros

This commit is contained in:
パチュリー・ノーレッジ 2024-02-20 19:47:40 +03:00
parent 130179ab6b
commit f345d55d3a
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -16,19 +16,19 @@
#define SECOND_PRECISION 1L
#define TIME_BEFORE_ACCIDENT 2UL
#define TEST_LABEL(s) { \
#define TEST_LABEL(s) do { \
printf("Test: %s\n", s); \
fflush(stdout); \
}
} while (0)
#define CLOCK_FUN_BEGIN \
static unsigned ticks_before_accident = TIME_BEFORE_ACCIDENT; \
time_t y;
#define CLOCK_FUN_END \
if (x != NULL) { \
if (x != NULL) \
*x = y; \
} \
\
return y;
time_t clock_change_time(time_t* x);