@@ -272,10 +272,14 @@ extern "C" {
272
272
#define IMPLEMENT_SASS_OPTION_ACCESSOR (type, option ) \
273
273
type ADDCALL sass_option_get_##option (struct Sass_Options * options) { return options->option ; } \
274
274
void ADDCALL sass_option_set_##option (struct Sass_Options * options, type option) { options->option = option; }
275
- #define IMPLEMENT_SASS_OPTION_STRING_ACCESSOR (type, option, def ) \
276
- type ADDCALL sass_option_get_##option (struct Sass_Options * options) { return safe_str (options->option , def); } \
275
+ #define IMPLEMENT_SASS_OPTION_STRING_GETTER (type, option, def ) \
276
+ type ADDCALL sass_option_get_##option (struct Sass_Options * options) { return safe_str (options->option , def); }
277
+ #define IMPLEMENT_SASS_OPTION_STRING_SETTER (type, option, def ) \
277
278
void ADDCALL sass_option_set_##option (struct Sass_Options * options, type option) \
278
279
{ free (options->option ); options->option = option || def ? sass_copy_c_string (option ? option : def) : 0 ; }
280
+ #define IMPLEMENT_SASS_OPTION_STRING_ACCESSOR (type, option, def ) \
281
+ IMPLEMENT_SASS_OPTION_STRING_GETTER (type, option, def) \
282
+ IMPLEMENT_SASS_OPTION_STRING_SETTER(type, option, def)
279
283
280
284
#define IMPLEMENT_SASS_CONTEXT_GETTER (type, option) \
281
285
type ADDCALL sass_context_get_##option (struct Sass_Context * ctx) { return ctx->option ; }
@@ -697,6 +701,8 @@ extern "C" {
697
701
IMPLEMENT_SASS_OPTION_ACCESSOR (Sass_Importer_List, c_headers);
698
702
IMPLEMENT_SASS_OPTION_ACCESSOR (const char *, indent);
699
703
IMPLEMENT_SASS_OPTION_ACCESSOR (const char *, linefeed);
704
+ IMPLEMENT_SASS_OPTION_STRING_SETTER (const char *, plugin_path, 0 );
705
+ IMPLEMENT_SASS_OPTION_STRING_SETTER (const char *, include_path, 0 );
700
706
IMPLEMENT_SASS_OPTION_STRING_ACCESSOR (const char *, input_path, 0 );
701
707
IMPLEMENT_SASS_OPTION_STRING_ACCESSOR (const char *, output_path, 0 );
702
708
IMPLEMENT_SASS_OPTION_STRING_ACCESSOR (const char *, source_map_file, 0 );
0 commit comments