From dc236a27ccc84ae285e93650eac9e674682c8590 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 8 Apr 2020 18:00:31 +0200 Subject: [PATCH] Warn about retrieving context address. --- manual/tracy.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/tracy.tex b/manual/tracy.tex index 96623345..16ad83cb 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -1317,7 +1317,7 @@ In typical use cases the zone context data structure is hidden from your view, r \begin{itemize} \item The created variable name is exactly what you pass as the \texttt{ctx} parameter. \item The data structure is of an opaque, immutable type \texttt{TracyCZoneCtx}. -\item Contents of the data structure can be copied by assignment. +\item Contents of the data structure can be copied by assignment. Do not retrieve or use the structure's address -- this is asking for trouble. \item You \emph{must} use the data structure (or any of its copies) exactly \emph{once} to end a zone. \end{itemize}