trace.cpp 228 Bytes
Newer Older
Swann Perarnau's avatar
Swann Perarnau committed
1 2 3 4 5 6 7 8 9 10 11 12
#include "trace.hpp"
#include <cassert>
bitmask_t   __trace_mask = 0;

void set_mask(bitmask_t& mask, bitmask_t mask_pos, bool activate)
{
	assert(mask_pos <=64);
	if(activate)
		mask |= mask_pos;
	else
		mask &= (~mask_pos);
}