numpy 2.0.0
include/numpy/utils.h
Go to the documentation of this file.
00001 #ifndef __NUMPY_UTILS_HEADER__
00002 #define __NUMPY_UTILS_HEADER__
00003 
00004 #ifndef __COMP_NPY_UNUSED
00005         #if defined(__GNUC__)
00006                 #define __COMP_NPY_UNUSED __attribute__ ((__unused__))
00007         # elif defined(__ICC)
00008                 #define __COMP_NPY_UNUSED __attribute__ ((__unused__))
00009         #else
00010                 #define __COMP_NPY_UNUSED
00011         #endif
00012 #endif
00013 
00014 /* Use this to tag a variable as not used. It will remove unused variable
00015  * warning on support platforms (see __COM_NPY_UNUSED) and mangle the variable
00016  * to avoid accidental use */
00017 #define NPY_UNUSED(x) (__NPY_UNUSED_TAGGED ## x) __COMP_NPY_UNUSED
00018 
00019 #endif