/* -------------------------------------------------------------------- */
/*	SCRFUNC.H						Citadel								*/
/* -------------------------------------------------------------------- */
/*	Wow.																*/
/* -------------------------------------------------------------------- */

#include "script.h"

#define SETINT(x)	CurScript->lastResult.v.i = x; \
					CurScript->lastResult.type = TYPE_INT

#define SETUINT(x)	CurScript->lastResult.v.ui = x; \
					CurScript->lastResult.type = TYPE_UINT

#define SETLONG(x)	CurScript->lastResult.v.l = x; \
					CurScript->lastResult.type = TYPE_LONG

#define SETULONG(x)	CurScript->lastResult.v.ul = x; \
					CurScript->lastResult.type = TYPE_ULONG

#define SETBOOL(x)	CurScript->lastResult.v.b = x; \
					CurScript->lastResult.type = TYPE_BOOL

#define SETSTR(x)	CopyStringToBuffer(CurScript->wowza, x, 255); \
					CurScript->lastResult.v.string = CurScript->wowza; \
					CurScript->lastResult.type = TYPE_STRING_MAX
