mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
gtestutils: Clarify that g_assert() should not have side effects
g_assert() gets completely compiled out if G_DISABLE_ASSERT is defined, so applications should not depend on side effects of the expression in an assertion.
This commit is contained in:
parent
4607bd377f
commit
3f12ca57c4
@ -380,7 +380,8 @@
|
||||
* an error message is logged and the application is terminated.
|
||||
*
|
||||
* The macro can be turned off in final releases of code by defining
|
||||
* `G_DISABLE_ASSERT` when compiling the application.
|
||||
* `G_DISABLE_ASSERT` when compiling the application, so code must
|
||||
* not depend on any side effects from @expr.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user