Skip to content

Commit

Permalink
Add note about FFF_RESET_CALLED_FAKES to README
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefGokhlayeh committed Aug 12, 2023
1 parent 4b7c79b commit 75cad07
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,20 @@ void setup()
}
```

You might want to define a macro to do this:
If you simply want to reset all called fakes, you can do so like this:

```c
void setup()
{
/* call resets of all previously called fakes */
FFF_RESET_CALLED_FAKES();

/* reset common FFF internal structures */
FFF_RESET_HISTORY();
}
```

Alternatively, you might want to define a macro to do this:

```c
/* List of fakes used by this unit tester */
Expand Down

0 comments on commit 75cad07

Please sign in to comment.