doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

d_think.h (395B)


      1 #ifndef __D_THINK__
      2 #define __D_THINK__
      3 
      4 typedef void (*actionf_v)();
      5 typedef void (*actionf_p1)(void*);
      6 typedef void (*actionf_p2)(void*, void*);
      7 
      8 typedef union {
      9   actionf_p1 acp1;
     10   actionf_v  acv;
     11   actionf_p2 acp2;
     12 } actionf_t;
     13 
     14 typedef actionf_t  think_t;
     15 
     16 typedef struct thinker_s {
     17     struct thinker_s*	prev;
     18     struct thinker_s*	next;
     19     think_t		function;
     20 } thinker_t;
     21 
     22 #endif
     23 
     24 
     25 
     26 
     27