#Macros

3 messages · Page 1 of 1 (latest)

tame agate
#
#define CHECK_RESIZE(cond,ptr,var_size,ret)\    
do {if (cond) {                  \
    if (!(ptr = realloc(ptr, var_size)))    \
      return ret;                \
  }                        \
 }                        \
 while(0)``` is there any thing wrong with this declairation syntaciticly ? im running this via gdb and for some reason its saying that the macro CHECK_RESIZE does not exist
strange wagonBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

tame agate
#

!solved