Re: Finding Type of a Void Pointer

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 11/29/97


On Sat, 29 Nov 1997, ;P wrote:

->  void *causer;

You could always add 'int causer_type;' here and keep track of it in
other portions of the code...(sure, it's simplistic, it uses 4bytes
more memory per event, and not as elegant as doing type checking; but,
hey, it's easy).


daniel koepke / dkoepke@california.com


     +------------------------------------------------------------+
     | 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