CPP   19

map.h

Guest on 20th May 2022 01:38:11 AM

  1. #ifndef SASS_TYPES_MAP_H
  2. #define SASS_TYPES_MAP_H
  3.  
  4. #include <nan.h>
  5. #include "sass_value_wrapper.h"
  6.  
  7. namespace SassTypes
  8. {
  9.   class Map : public SassValueWrapper<Map> {
  10.     public:
  11.       Map(Sass_Value*);
  12.       static char const* get_constructor_name() { return "SassMap"; }
  13.       static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **);
  14.  
  15.       static void initPrototype(v8::Local<v8::FunctionTemplate>);
  16.  
  17.       static NAN_METHOD(GetValue);
  18.       static NAN_METHOD(SetValue);
  19.       static NAN_METHOD(GetKey);
  20.       static NAN_METHOD(SetKey);
  21.       static NAN_METHOD(GetLength);
  22.   };
  23. }
  24.  
  25. #endif

Raw Paste


Login or Register to edit or fork this paste. It's free.