moved macros to seperate file

Signed-off-by: Alexander Skjolden <alex@plastboks.net>