Sha256: bfd48316f56914a4a00c13139dd9390b68352b26f2221dfcc046f9a515b03f4f

Contents?: true

Size: 445 Bytes

Versions: 8

Compression:

Stored size: 445 Bytes

Contents

// 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:

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sassc-0.0.9 ext/libsass/kwd_arg_macros.hpp
sassc-0.0.8 ext/libsass/kwd_arg_macros.hpp
sassc-0.0.7 ext/libsass/kwd_arg_macros.hpp
sassc-0.0.6 ext/libsass/kwd_arg_macros.hpp
sassc-0.0.5 ext/libsass/kwd_arg_macros.hpp
sassc-0.0.4 ext/libsass/kwd_arg_macros.hpp
sassc-0.0.2 ext/libsass/kwd_arg_macros.hpp
sassc-0.0.1 ext/libsass/kwd_arg_macros.hpp