Re: [ Code ] My previous post...

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 07/31/97


On Thu, 31 Jul 1997, David Klasinc wrote:

>On Wed, 30 Jul 1997, Sammy wrote:
>
>> #define FREE(ptr)       (free((ptr)); (ptr) = NULL:)
>
> Hm, Ok... that FREE didn't quite work, I got some parse error, but then I
>put something similar into free_char()

Try:
#define FREE(ptr)       do { free((ptr)); (ptr) = NULL; } while 0;

(akin to CREATE)

--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST