]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/options: add an assert loop to verify ordering 41844/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 28 Apr 2026 06:45:03 +0000 (08:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 28 Apr 2026 15:39:32 +0000 (17:39 +0200)
commit4c640beba6faf717d7f145036af4fa5ba430e6a9
tree133c0972ecbe9d36438c223c2ee157c61b3d6024
parent0a85be9ccf1bdd0fb19caf1178958f243c6fc9ee
shared/options: add an assert loop to verify ordering

If things are misordered, we need to catch this. Use assert_se to make
the check also in custom builds that otherwise disable assertions.
src/shared/options.c
src/shared/options.h
src/test/test-options.c