sass.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef SASS
  2. #define SASS
  3. #include <stddef.h>
  4. #include <stdbool.h>
  5. #ifdef _WIN32
  6. /* You should define ADD_EXPORTS *only* when building the DLL. */
  7. #ifdef ADD_EXPORTS
  8. #define ADDAPI __declspec(dllexport)
  9. #define ADDCALL __cdecl
  10. #else
  11. #define ADDAPI
  12. #define ADDCALL
  13. #endif
  14. #else /* _WIN32 not defined. */
  15. /* Define with no value on non-Windows OSes. */
  16. #define ADDAPI
  17. #define ADDCALL
  18. #endif
  19. #ifndef LIBSASS_VERSION
  20. #define LIBSASS_VERSION "[NA]"
  21. #endif
  22. // include API headers
  23. #include "sass_values.h"
  24. #include "sass_functions.h"
  25. /* Make sure functions are exported with C linkage under C++ compilers. */
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. // Different render styles
  30. enum Sass_Output_Style {
  31. SASS_STYLE_NESTED,
  32. SASS_STYLE_EXPANDED,
  33. SASS_STYLE_COMPACT,
  34. SASS_STYLE_COMPRESSED
  35. };
  36. // Some convenient string helper function
  37. ADDAPI char* ADDCALL sass_string_quote (const char *str, const char quotemark);
  38. ADDAPI char* ADDCALL sass_string_unquote (const char *str);
  39. // Get compiled libsass version
  40. ADDAPI const char* ADDCALL libsass_version(void);
  41. #ifdef __cplusplus
  42. } // __cplusplus defined.
  43. #endif
  44. #endif