generic macros

Signed-off-by: nixnodes <code@eth.si>
Bugfix: LOM strings were getting processed when not requested (rev. 2)

Signed-off-by: nixnodes <code@eth.si>