Browse Source

PRIVATE is ignored on global variables so remove it.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
0b71cbf3b4
3 changed files with 6 additions and 6 deletions
  1. +3
    -3
      include/asset.hpp
  2. +2
    -2
      include/common.hpp
  3. +1
    -1
      include/rack.hpp

+ 3
- 3
include/asset.hpp View File

@@ -37,10 +37,10 @@ std::string plugin(plugin::Plugin* plugin, std::string filename = "");


// 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
PRIVATE extern std::string bundlePath;
extern std::string bundlePath;


} // namespace asset


+ 2
- 2
include/common.hpp View File

@@ -27,8 +27,8 @@ E.g.
#define DEPRECATED __declspec(deprecated)
#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
#define PRIVATE


+ 1
- 1
include/rack.hpp View File

@@ -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."
#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")))



Loading…
Cancel
Save