Sha256: cbf102ed723aba6aa91459c5b29fcbb23015ab696e711cd897a61935a87e7a6d
Contents?: true
Size: 811 Bytes
Versions: 8
Compression:
Stored size: 811 Bytes
Contents
#include <cstdlib> #include <cstring> #include <vector> #include <sstream> #include "sass.h" #include "inspect.hpp" extern "C" { using namespace std; // caller must free the returned memory char* ADDCALL sass_string_quote (const char *str, const char quotemark) { string quoted = Sass::quote(str, quotemark); char *cstr = (char*) malloc(quoted.length() + 1); std::strcpy(cstr, quoted.c_str()); return cstr; } // caller must free the returned memory char* ADDCALL sass_string_unquote (const char *str) { string unquoted = Sass::unquote(str); char *cstr = (char*) malloc(unquoted.length() + 1); std::strcpy(cstr, unquoted.c_str()); return cstr; } // Get compiled libsass version const char* ADDCALL libsass_version(void) { return LIBSASS_VERSION; } }
Version data entries
8 entries across 8 versions & 1 rubygems