= Change tfwrite() like macros into pure functions to hide implementation.