SenseApiDesc: use CPP concat to reduce typos
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#define HK_Q(x) #x
|
||||
#define HK_QUOTE(x) HK_Q(x)
|
||||
|
||||
#define HK_CONCAT(a, b) a ## b
|
||||
|
||||
#define HK_UNMANGLED "C"
|
||||
|
||||
#endif // HK_PREPROCESSOR_H
|
||||
|
||||
@@ -121,8 +121,10 @@ public:
|
||||
#define HK_GET_SENSE_API_DESC_FN_NAME getSenseApiDesc
|
||||
#define HK_GET_SENSE_API_DESC_FN_NAME_STR \
|
||||
HK_QUOTE(HK_GET_SENSE_API_DESC_FN_NAME)
|
||||
#define HK_GET_SENSE_API_DESC_FN_TYPEDEF \
|
||||
HK_CONCAT(HK_GET_SENSE_API_DESC_FN_NAME, Fn)
|
||||
|
||||
typedef const SenseApiDesc &(getSenseApiDescFn)(void);
|
||||
typedef const SenseApiDesc &(HK_GET_SENSE_API_DESC_FN_TYPEDEF)(void);
|
||||
|
||||
} // namespace sense_api
|
||||
} // namespace hk
|
||||
|
||||
Reference in New Issue
Block a user