[C] refactor Entry/Exit without #define/#undef
[C] generate comment