btmux/doc/.svn/
btmux/event/.svn/
btmux/game/.svn/
btmux/game/bin/.svn/
btmux/game/data/.svn/
btmux/game/logs/.svn/
btmux/game/maps/
btmux/game/maps/.svn/
btmux/game/maps/.svn/prop-base/
btmux/game/maps/.svn/props/
btmux/game/maps/.svn/text-base/
btmux/game/maps/.svn/wcprops/
btmux/game/mechs/
btmux/game/mechs/.svn/
btmux/game/mechs/.svn/prop-base/
btmux/game/mechs/.svn/props/
btmux/game/mechs/.svn/text-base/
btmux/game/mechs/.svn/wcprops/
btmux/game/text/.svn/
btmux/include/.svn/
btmux/misc/
btmux/misc/.svn/
btmux/misc/.svn/prop-base/
btmux/misc/.svn/props/
btmux/misc/.svn/text-base/
btmux/misc/.svn/wcprops/
btmux/python/
btmux/python/.svn/
btmux/python/.svn/prop-base/
btmux/python/.svn/props/
btmux/python/.svn/text-base/
btmux/python/.svn/wcprops/
btmux/src/.svn/prop-base/
btmux/src/.svn/props/
btmux/src/.svn/text-base/
btmux/src/.svn/wcprops/
btmux/src/hcode/.svn/
btmux/src/hcode/btech/
btmux/src/hcode/btech/.svn/
btmux/src/hcode/btech/.svn/prop-base/
btmux/src/hcode/btech/.svn/props/
btmux/src/hcode/btech/.svn/text-base/
btmux/src/hcode/btech/.svn/wcprops/
btmux/src/hcode/include/.svn/
btmux/tree/.svn/
/*
 * $Id: create.h,v 1.1 2005/06/13 20:50:45 murrayma Exp $
 *
 * Author: Markus "iDLari" Stenberg <fingon@iki.fi>
 *
 *  Copyright (c) 1996 Markus Stenberg
 *       All rights reserved
 *
 * Created: Thu Aug 29 09:51:22 1996 fingon
 * Last modified: Fri Nov 27 20:15:14 1998 fingon
 *
 */

#ifndef CREATE_H
#define CREATE_H

#define Create(a,b,c) \
if (!((a) = ( b * ) calloc(sizeof( b ), c ) )) \
{ printf ("Unable to malloc!\n"); exit(1); }

#define MyReCreate(a,b,c) \
if (!((a) = ( b * ) realloc((void *) a, sizeof( b ) * (c) ) )) \
{ printf ("Unable to realloc!\n"); exit(1); }

#define ReCreate(a,b,c) \
if (a) { MyReCreate(a,b,c); } else { Create(a,b,c); }

#define Free(a) if (a) {free(a);a=0;}

#endif				/* CREATE_H */