mozilla / cubeb-coreaudio-rs

The audio backend of Firefox on Mac OS X.
ISC License
25 stars 10 forks source link

Don't call functions in the `debug_assert!` #40

Closed ChunMinChang closed 4 years ago

ChunMinChang commented 4 years ago

The function calls in the debug_assert! will be ignored in release build. As a result, the function call inside won't be executed. We should not call functions in the debug_assert!. We should probably not call functions in assert! either since the assert! may be changed to debug_assert! someday.