Skip to content
Snippets Groups Projects
Verified Commit 110aeada authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix backslashes in bits_pthread macros

parent 73fcc88a
No related branches found
No related tags found
No related merge requests found
Pipeline #16233 failed
...@@ -11,19 +11,19 @@ after_includes = """ ...@@ -11,19 +11,19 @@ after_includes = """
#define PTHREAD_ONCE_INIT ((pthread_once_t){0}) #define PTHREAD_ONCE_INIT ((pthread_once_t){0})
#define PTHREAD_RWLOCK_INITIALIZER ((pthread_rwlock_t){0}) #define PTHREAD_RWLOCK_INITIALIZER ((pthread_rwlock_t){0})
#define pthread_cleanup_push(routine, arg) do { \ #define pthread_cleanup_push(routine, arg) do { \\
struct { \ struct { \\
void (*routine)(void *); \ void (*routine)(void *); \\
void *arg; \ void *arg; \\
void *prev; \ void *prev; \\
} __relibc_internal_pthread_ll_entry = { \ } __relibc_internal_pthread_ll_entry = { \\
.routine = (void (*)(void *))(routine), \ .routine = (void (*)(void *))(routine), \\
.arg = (void *)(arg), \ .arg = (void *)(arg), \\
}; \ }; \\
__relibc_internal_pthread_cleanup_push(&__relibc_internal_pthread_ll_entry); __relibc_internal_pthread_cleanup_push(&__relibc_internal_pthread_ll_entry);
#define pthread_cleanup_pop(execute) \ #define pthread_cleanup_pop(execute) \\
__relibc_internal_pthread_cleanup_pop((execute)); \ __relibc_internal_pthread_cleanup_pop((execute)); \\
} while(0) } while(0)
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment