Merge: doc: fixed some typos and other misc. corrections
[nit.git] / clib / traces.c
index 4b01642..9e3c3ad 100644 (file)
@@ -1,4 +1,8 @@
 #define TRACEPOINT_CREATE_PROBES
 #define TRACEPOINT_DEFINE
 
-#include "traces.h"
+#include "nit.common.h"
+
+void object_destroy_callback(void *obj, void *cd){
+       tracepoint(Nit_Compiler, Object_Destroy, (char*)((val*)(obj))->type->name, (uintptr_t)obj);
+}