Added is_set macro to tools.h