mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
introduce pa_assert_fp() for fast path assertions
This commit is contained in:
parent
fe3709c5c7
commit
bd3154a861
2 changed files with 24 additions and 4 deletions
|
|
@ -851,6 +851,14 @@ int main(int argc, char *argv[]) {
|
|||
pa_log_debug(_("Optimized build: no"));
|
||||
#endif
|
||||
|
||||
#ifdef NDEBUG
|
||||
pa_log_debug(_("NDEBUG defined, all asserts disabled."));
|
||||
#elif defined(FASTPATH)
|
||||
pa_log_debug(_("FASTPATH defined, only fast path asserts disabled."));
|
||||
#else
|
||||
pa_log_debug(_("All asserts enabled."));
|
||||
#endif
|
||||
|
||||
if (!(s = pa_machine_id())) {
|
||||
pa_log(_("Failed to get machine ID"));
|
||||
goto finish;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue