Fix backslashes in bits_pthread macros
This commit is contained in:
@@ -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)
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user