智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/61/616d8b2fc5aaf92bcde58c6d6e8...

28 lines
514 B

#ifndef SASS_KWD_ARG_MACROS_H
#define SASS_KWD_ARG_MACROS_H
// Example usage:
// KWD_ARG_SET(Args) {
// KWD_ARG(Args, string, foo);
// KWD_ARG(Args, int, bar);
// ...
// };
//
// ... and later ...
//
// something(Args().foo("hey").bar(3));
#define KWD_ARG_SET(set_name) class set_name
#define KWD_ARG(set_name, type, name) \
private: \
type name##_; \
public: \
set_name& name(type name##__) { \
name##_ = name##__; \
return *this; \
} \
type name() { return name##_; } \
private:
#endif