event/create.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define Create(a, b, c)
#define MyReCreate(a, b, c)
#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;}


Define Documentation

#define Create ( a,
b,
c   ) 

Value:

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

Definition at line 18 of file create.h.

Referenced by add_mapobj(), AddEntry(), artillery_shoot(), bomb_drop(), colourize_tac_map(), create_brandname(), create_if_neccessary(), create_new_stats(), CreateMenuEntry_Killer(), CriticalStatus(), debug_memory(), do_comprintf(), do_comsend(), grab_us_an_array(), initialize_map_empty(), initialize_partname_tables(), load_comsystem(), load_mapdynamic(), MakeCoolMenuText(), map_load(), map_load_bits(), map_setmapsize(), mech_spot(), mmdb_db_read(), NewSpecialObject(), and scan_template_dir().

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

Definition at line 29 of file create.h.

#define MyReCreate ( a,
b,
c   ) 

Value:

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

Definition at line 22 of file create.h.

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

Definition at line 26 of file create.h.

Referenced by add_mech_to_map(), colourize_tac_map(), eliminate_empties(), and scan_template_dir().


Generated on Mon May 28 04:25:26 2007 for BattletechMUX by  doxygen 1.4.7