Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5b70f5

Browse files
committed
Add UNREF macro if not tracing refs (see UNREF function in object.c).
1 parent a769172 commit d5b70f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Include/object.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ environment the global variable trick is not safe.)
191191

192192
#ifndef TRACE_REFS
193193
#define DELREF(op) (*(op)->ob_type->tp_dealloc)((object *)(op))
194+
#define UNREF(op) /*empty*/
194195
#endif
195196

196197
#ifdef REF_DEBUG

0 commit comments

Comments
 (0)