CPP   49

boolean.h

Guest on 20th May 2022 01:46:08 AM

  1. #ifndef SASS_TYPES_BOOLEAN_H
  2. #define SASS_TYPES_BOOLEAN_H
  3.  
  4. #include <nan.h>
  5. #include "value.h"
  6. #include "sass_value_wrapper.h"
  7.  
  8. namespace SassTypes
  9. {
  10.   class Boolean : public SassTypes::Value {
  11.     public:
  12.       static Boolean& get_singleton(bool);
  13.       static v8::Local<v8::Function> get_constructor();
  14.  
  15.       v8::Local<v8::Object> get_js_object();
  16.  
  17.       static NAN_METHOD(New);
  18.       static NAN_METHOD(GetValue);
  19.  
  20.     private:
  21.       Boolean(bool);
  22.  
  23.       Nan::Persistent<v8::Object> js_object;
  24.  
  25.       static Nan::Persistent<v8::Function> constructor;
  26.       static bool constructor_locked;
  27.       v8::Local<v8::Boolean> get_js_boolean();
  28.   };
  29. }
  30.  
  31. #endif

Raw Paste


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