add pa_assert_cc() for compile time assertions

This commit is contained in:
Lennart Poettering 2009-03-23 21:03:52 +01:00
parent a467bec423
commit 52dcb950ef
2 changed files with 15 additions and 1 deletions

View file

@ -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);