Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21931>
_mesa_trace_scope_end(int *scope)
{
/* we save the category in the scope variable */
- _MESA_TRACE_END(*scope);
+ _MESA_TRACE_END((enum util_perfetto_category) *scope);
}
#else
* Internal interface used by generated tracepoints
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Tracepoint descriptor.
*/
return u_trace_appendv(ut, cs, tp, 0);
}
-
+#ifdef __cplusplus
+}
+#endif
#endif /* _U_TRACE_PRIV_H */