added assert_weak macro to util.h