更新时间:2023-12-01 08:07:58
使用宏定义类:
#define CLASS_WITH_NAME(name) name { const char * __NAME = #name; class CLASS_WITH_NAME(class_name) // No "{" here!
骇客骇客,但我能想到的***的
Ugly hack but the best I can think of.
类名宏
是否有类名宏?