bitvars.inc
ttdpatch_ttdpatch/inc/bitvars.inc
//
// bitvars.inc - define bit variables and bit names/values
//
#ifndef __BITVARS_INC__
#define __BITVARS_INC__

%macro defbitvar 2.nolist	// argument: patchflag,variablename
	%push bitvar
	%define %$curbitvar %2
	extern %$curbitvar
%endmacro
%macro defbit 2.nolist		// argument: bitname,bitnumber
	%xdefine %1_VAR %$curbitvar
	%xdefine %1_NUM %2
	%assign %1 1<<%2
%endmacro
%macro enddefbits 0.nolist
	%pop
%endmacro
#include "../bitnames.ah"
%undef defbitvar
%undef defbit
%undef enddefbits

#endif // __BITVARS_INC__
