Sha256: 15f240fa59f11b65ff5fbb360967d5feb494b61041aa822fa0d8e4bd9b4918a9
Contents?: true
Size: 812 Bytes
Versions: 17
Compression:
Stored size: 812 Bytes
Contents
#ifndef SASS_AST_DEF_MACROS_H #define SASS_AST_DEF_MACROS_H #define ATTACH_OPERATIONS()\ virtual void perform(Operation<void>* op) { (*op)(this); }\ virtual AST_Node* perform(Operation<AST_Node*>* op) { return (*op)(this); }\ virtual Statement* perform(Operation<Statement*>* op) { return (*op)(this); }\ virtual Expression* perform(Operation<Expression*>* op) { return (*op)(this); }\ virtual Selector* perform(Operation<Selector*>* op) { return (*op)(this); }\ virtual string perform(Operation<string>* op) { return (*op)(this); }\ virtual Sass_Value* perform(Operation<Sass_Value*>* op) { return (*op)(this); } #define ADD_PROPERTY(type, name)\ protected:\ type name##_;\ public:\ type name() const { return name##_; }\ type name(type name##__) { return name##_ = name##__; }\ private: #endif
Version data entries
17 entries across 17 versions & 2 rubygems