我有一个Type_##type
依赖于某个宏 type_create 的类型:
#define type_create(type) { \
typedef struct { \
type* ptr, \
} Type_##type; \
我有一些依赖它的宏。现在我想知道我是否可以#ifndef
针对某个类型执行类似操作,例如,
#ifndef Type_int
type_create(int);
#endif
除类型外。
我有一个Type_##type
依赖于某个宏 type_create 的类型:
#define type_create(type) { \
typedef struct { \
type* ptr, \
} Type_##type; \
我有一些依赖它的宏。现在我想知道我是否可以#ifndef
针对某个类型执行类似操作,例如,
#ifndef Type_int
type_create(int);
#endif
除类型外。