[Misc] Some defs and macros