home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
500
/
471
/
rccl151
< prev
next >
Wrap
Text File
|
1987-03-02
|
776b
|
20 lines
/*
* This is a unimplemented and undebugged attempt of replacing
* the motion requests parameter setting functions by macros in
* order to reduce the number of library entry points an improve
* the link time.
*/
#define setmod(m) motionreq.mod = m;
#define setime(ta, ts) {motionreq.acct = ta; motionreq.sgt = ts;}
#define setvel(t, r) {motionreq.velt = t; motionreq.velr = r;}
#define evalfn(fn) motionreq.fnt = fn;
#define setconf(s) motionreq.cfg = s;
#define sample(m) {int k = m;\
if (k < MINSAMPLE) k = MINSAMPLE;\
if (k > MAXSAMPLE) k = MAXSAMPLE;\
motionreq.smpl = k - k % HARDCLOCK;}
#define move(p) {motionreq.pst = (PST_PTR)p; movereq();}
#define stop(t) {motionreq.sgt = t; movereq();}