Initial commit
[yaffs-website] / node_modules / node-sass / src / custom_function_bridge.h
1 #ifndef CUSTOM_FUNCTION_BRIDGE_H
2 #define CUSTOM_FUNCTION_BRIDGE_H
3
4 #include <nan.h>
5 #include <sass/values.h>
6 #include <sass/functions.h>
7 #include "callback_bridge.h"
8
9 class CustomFunctionBridge : public CallbackBridge<Sass_Value*> {
10   public:
11     CustomFunctionBridge(v8::Local<v8::Function> cb, bool is_sync) : CallbackBridge<Sass_Value*>(cb, is_sync) {}
12
13   private:
14     Sass_Value* post_process_return_value(v8::Local<v8::Value>) const;
15     std::vector<v8::Local<v8::Value>> pre_process_args(std::vector<void*>) const;
16 };
17
18 #endif