Fix backslashes in bits_pthread macros

This commit is contained in:
Jeremy Soller
2024-09-19 15:45:20 -06:00
parent 73fcc88aa2
commit 110aeadaa6
+11 -11
View File
@@ -11,19 +11,19 @@ after_includes = """
#define PTHREAD_ONCE_INIT ((pthread_once_t){0})
#define PTHREAD_RWLOCK_INITIALIZER ((pthread_rwlock_t){0})
#define pthread_cleanup_push(routine, arg) do { \
struct { \
void (*routine)(void *); \
void *arg; \
void *prev; \
} __relibc_internal_pthread_ll_entry = { \
.routine = (void (*)(void *))(routine), \
.arg = (void *)(arg), \
}; \
#define pthread_cleanup_push(routine, arg) do { \\
struct { \\
void (*routine)(void *); \\
void *arg; \\
void *prev; \\
} __relibc_internal_pthread_ll_entry = { \\
.routine = (void (*)(void *))(routine), \\
.arg = (void *)(arg), \\
}; \\
__relibc_internal_pthread_cleanup_push(&__relibc_internal_pthread_ll_entry);
#define pthread_cleanup_pop(execute) \
__relibc_internal_pthread_cleanup_pop((execute)); \
#define pthread_cleanup_pop(execute) \\
__relibc_internal_pthread_cleanup_pop((execute)); \\
} while(0)
"""