lib/sassc/native/native_functions_api.rb in sassc-1.8.5 vs lib/sassc/native/native_functions_api.rb in sassc-1.9.0
- old
+ new
@@ -24,10 +24,13 @@
# ADDAPI union Sass_Value* ADDCALL sass_make_color (double r, double g, double b, double a);
attach_function :sass_make_color, [:double, :double, :double, :double], :sass_value_ptr
# ADDAPI union Sass_Value* ADDCALL sass_make_map (size_t len);
attach_function :sass_make_map, [:size_t], :sass_value_ptr
+
+ # ADDAPI union Sass_Value* ADDCALL sass_make_boolean (boolean val);
+ attach_function :sass_make_boolean, [:bool], :sass_value_ptr
# ADDAPI void ADDCALL sass_map_set_key (union Sass_Value* v, size_t i, union Sass_Value*);
attach_function :sass_map_set_key, [:sass_value_ptr, :size_t, :sass_value_ptr], :void
# ADDAPI union Sass_Value* ADDCALL sass_map_get_key (const union Sass_Value* v, size_t i);
@@ -58,9 +61,12 @@
# ADDAPI const char* ADDCALL sass_number_get_value (const union Sass_Value* v);
attach_function :sass_number_get_value, [:sass_value_ptr], :double
# ADDAPI const char* ADDCALL sass_number_get_unit (const union Sass_Value* v);
attach_function :sass_number_get_unit, [:sass_value_ptr], :string
+
+ # ADDAPI const char* ADDCALL sass_boolean_get_value (const union Sass_Value* v);
+ attach_function :sass_boolean_get_value, [:sass_value_ptr], :bool
def self.string_get_type(native_value)
string_is_quoted(native_value) ? :string : :identifier
end