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 Nov 8, 2019
1 parent 3f6c304 commit e8aacd5
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 @@ -186,7 +186,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 e8aacd5

Please sign in to comment.