From: Richard Vaughan <vaughan@hr...> - 2002-11-19 01:19:27
Here's an alternative approach that Brian and I discussed
over the weekend, and didn't much like due to non-C syntax. But just for
player.h is written with macros like this:
PLAYERMSG( position_data )
which by default is expanded by the preprocessor to:
typedef struct player_position_data
} __attribute__ ((packed)) player_position_data_t;
or, if you define a flag and #include it again, expands to:
typedef struct native_position_data
A script could easily generate conversion functions between the struct
types. Any thoughts on this?
Information Sciences Lab, HRL Laboratories LLC.
vaughan@... (310) 317-5689