generic macros

Signed-off-by: nixnodes <code@eth.si>
Merge branch 'master' of https://github.com/nixnodes/glutil.git