improvement on the __checked_call macros