diff options
| author | Julian Blake Kongslie | 2022-11-05 16:55:49 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-11-05 16:55:49 -0700 |
| commit | 3c43115056a1622d97de05fbc56c38e2013cfc1f (patch) | |
| tree | 6defcfe0f836fee00585fcebdde82dab2c7cf7eb | |
| parent | Remove .gitignore (diff) | |
| download | nanosim-3c43115056a1622d97de05fbc56c38e2013cfc1f.tar.xz | |
Slightly more ergonomic support for events without data
Diffstat (limited to '')
| -rw-r--r-- | infra/sim.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/infra/sim.h b/infra/sim.h index 185916a..b3dd0d3 100644 --- a/infra/sim.h +++ b/infra/sim.h | |||
| @@ -31,6 +31,10 @@ namespace infra { | |||
| 31 | ++now; | 31 | ++now; |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | void pte(const transaction &t, const char *event) { | ||
| 35 | pt::event(t, event, now, ""); | ||
| 36 | } | ||
| 37 | |||
| 34 | void pte(const transaction &t, const char *event, const std::string &data) { | 38 | void pte(const transaction &t, const char *event, const std::string &data) { |
| 35 | pt::event(t, event, now, data); | 39 | pt::event(t, event, now, data); |
| 36 | } | 40 | } |
