/*
  This is really a header file
*/

#define EL(v,i) ((v) select (i))
#define DEBUG2(str,p0,p1) player sidechat format [str,p0,p1]
#define ARG0 (_this select 0)
#define ARG1 (_this select 1)
#define ARG2 (_this select 2)
#define ARG3 (_this select 3)
#define ARG4 (_this select 4)
#define ARG5 (_this select 5)
#define ARG6 (_this select 6)

#define VAR(O,V) (O getVariable #V)
#define SETVAR(O,V,N) O setVariable [#V,N]

#define VAR_DEFAULT(var,val) if (isNil #var) then {var=(val);}
