X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=trace_write.cpp;h=3187b9972ab1ab125fad58f87199de81a8bc9547;hb=0ad49cbe3446dfe8404516852c904b40cf909c7c;hp=f77a275524a611e76ceea8586806f3819bd45740;hpb=9a3984ee426e09de1a7588d0224574c97dba5d72;p=apitrace diff --git a/trace_write.cpp b/trace_write.cpp index f77a275..3187b99 100644 --- a/trace_write.cpp +++ b/trace_write.cpp @@ -148,10 +148,6 @@ void Open(void) { } } -void Close(void) { - _Close(); -} - static unsigned call_no = 0; inline bool lookup(std::vector &map, size_t index) { @@ -169,6 +165,15 @@ static std::vector enums; static std::vector bitmasks; +void Close(void) { + _Close(); + call_no = 0; + functions = std::vector(); + structs = std::vector(); + enums = std::vector(); + bitmasks = std::vector(); +} + unsigned BeginEnter(const FunctionSig &function) { OS::AcquireMutex(); Open();