|
From: <kin...@us...> - 2003-11-17 07:46:14
|
Update of /cvsroot/teem/teem/src/nrrd In directory sc8-pr-cvs1:/tmp/cvs-serv5422 Modified Files: nrrdMacros.h Log Message: added warning about macro side-effect. "This is awful!" Index: nrrdMacros.h =================================================================== RCS file: /cvsroot/teem/teem/src/nrrd/nrrdMacros.h,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** nrrdMacros.h 23 Jul 2003 01:20:29 -0000 1.21 --- nrrdMacros.h 17 Nov 2003 07:45:31 -0000 1.22 *************** *** 141,144 **** --- 141,148 ---- ** opposite of NRRD_INDEX_GEN: going from linear index "I" to ** coordinate array "coord". + ** + ** HUGE NOTE: the I argument will end up as ZERO when this is done! + ** If passing a loop control variable, pass a copy instead! + ** Hello, side-effects! This is awful! */ #define NRRD_COORD_GEN(coord, size, dim, I) \ |