@@ -37,10 +37,10 @@ std::string plugin(plugin::Plugin* plugin, std::string filename = ""); | |||||
// Set these before calling init() to override the default paths | // Set these before calling init() to override the default paths | ||||
PRIVATE extern std::string systemDir; | |||||
PRIVATE extern std::string userDir; | |||||
extern std::string systemDir; | |||||
extern std::string userDir; | |||||
// Only defined on Mac | // Only defined on Mac | ||||
PRIVATE extern std::string bundlePath; | |||||
extern std::string bundlePath; | |||||
} // namespace asset | } // namespace asset | ||||
@@ -27,8 +27,8 @@ E.g. | |||||
#define DEPRECATED __declspec(deprecated) | #define DEPRECATED __declspec(deprecated) | ||||
#endif | #endif | ||||
/** Attribute for private functions and symbols not intended to be used by plugins. | |||||
When #including rack.hpp, attempting to call PRIVATE functions or access variables will result in a compile-time error. | |||||
/** Attribute for private functions not intended to be called by plugins. | |||||
When #including rack.hpp, attempting to call PRIVATE functions will result in a compile-time error. | |||||
*/ | */ | ||||
#ifndef PRIVATE | #ifndef PRIVATE | ||||
#define PRIVATE | #define PRIVATE | ||||
@@ -10,7 +10,7 @@ Directly including Rack headers other than rack.hpp in your plugin is unsupporte | |||||
#error "Plugins must only include rack.hpp. Including other Rack headers is unsupported." | #error "Plugins must only include rack.hpp. Including other Rack headers is unsupported." | ||||
#endif | #endif | ||||
/** Functions and symbols with the PRIVATE attribute should not be called/used by plugins. | |||||
/** Functions with the PRIVATE attribute should not be called by plugins. | |||||
*/ | */ | ||||
#define PRIVATE __attribute__((error("Using internal Rack function or symbol"))) | #define PRIVATE __attribute__((error("Using internal Rack function or symbol"))) | ||||