A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-July/046089.html below:

[Python-Dev] Proposal: C API Macro to decref and set to NULL

[Python-Dev] Proposal: C API Macro to decref and set to NULL [Python-Dev] Proposal: C API Macro to decref and set to NULLDelaney, Timothy C (Timothy) tdelaney at avaya.com
Tue Jul 13 01:54:03 CEST 2004
Tim Peters wrote:

> BTW, re-invented at least as often is a VISIT macro for use in
> tp_traverse slots, like typeobject.c's (and several other files')
> 
> #define VISIT(SLOT) \
> 	if (SLOT) { \
> 		err = visit((PyObject *)(SLOT), arg); \
> 		if (err) \
> 			return err; \
> 	}

Shouldn't this also be wrapped in a do {} while (0)?

Tim Delaney
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4