Refactor DEFINE_ALLOCATOR to use helper method and asserts
commit517b7e0decb2ec30333f045f7605025c0195f895
authorJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 23 Aug 2015 22:32:39 +0000 (23 18:32 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 30 Aug 2015 09:01:16 +0000 (30 11:01 +0200)
treecca77562451d7b2156da623878b6ac1362387722
parent5bebd0bc7638bf8373598b87404d1cc13cf8f5e5
Refactor DEFINE_ALLOCATOR to use helper method and asserts

Move main code to helper method and only keep assertion checks and code
that dereferences the passed pointer.
include/tig/util.h
src/util.c