summaryrefslogtreecommitdiff
path: root/infra/sim.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-11-05 16:55:49 -0700
committerJulian Blake Kongslie2022-11-05 16:55:49 -0700
commit3c43115056a1622d97de05fbc56c38e2013cfc1f (patch)
tree6defcfe0f836fee00585fcebdde82dab2c7cf7eb /infra/sim.h
parentRemove .gitignore (diff)
downloadnanosim-3c43115056a1622d97de05fbc56c38e2013cfc1f.tar.xz
Slightly more ergonomic support for events without data
Diffstat (limited to 'infra/sim.h')
-rw-r--r--infra/sim.h4
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 }