mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
add pa_assert_cc() for compile time assertions
This commit is contained in:
parent
a467bec423
commit
52dcb950ef
2 changed files with 15 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ int pa_detect_fork(void) {
|
|||
* however have to deal with this cleanly, so we try to detect the
|
||||
* forks making sure all our calls fail cleanly after the fork. */
|
||||
|
||||
pa_assert(sizeof(pa_atomic_t) >= sizeof(pid_t));
|
||||
pa_assert_cc(sizeof(pa_atomic_t) >= sizeof(pid_t));
|
||||
|
||||
for (;;) {
|
||||
pid_t stored_pid = (pid_t) pa_atomic_load(&pid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue