mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +00:00
[code-utils] enhance 'VerifyOrExit' to make action optional (#5659)
This commit uses the newly added macros from `arg_macros.hpp` to enhance `VerifyOfExit()` enabling `aAction` argument to be optional.
This commit is contained in:
committed by
Jonathan Hui
parent
8691e90d55
commit
c9c0cf404d
@@ -50,7 +50,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
otError error = OT_ERROR_NONE;
|
||||
otMessageSettings settings;
|
||||
|
||||
VerifyOrExit(size > 0, OT_NOOP);
|
||||
VerifyOrExit(size > 0);
|
||||
|
||||
FuzzerPlatformInit();
|
||||
|
||||
@@ -73,7 +73,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
|
||||
message = nullptr;
|
||||
|
||||
VerifyOrExit(!FuzzerPlatformResetWasRequested(), OT_NOOP);
|
||||
VerifyOrExit(!FuzzerPlatformResetWasRequested());
|
||||
|
||||
for (int i = 0; i < MAX_ITERATIONS; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user