union Sass_Value* custom_function(const union Sass_Value* s_args, Sass_Function_Entry cb, struct Sass_Options* opts) { // get the cookie from function descriptor void* cookie = sass_function_get_cookie(cb); // we actually abuse the void* to store an "int" return sass_make_number((intptr_t)cookie, "px"); }
union Sass_Value* To_C::operator()(Number* n) { return sass_make_number(n->value(), n->unit().c_str()); }