Browse Source

Add PRIVATE macro.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
1fdbf71bb7
2 changed files with 9 additions and 1 deletions
  1. +5
    -1
      include/common.hpp
  2. +4
    -0
      include/rack.hpp

+ 5
- 1
include/common.hpp View File

@@ -19,7 +19,7 @@
namespace rack {


/** Deprecation notice for functions
/** Attribute for deprecated functions and symbols.
E.g.

DEPRECATED void foo();
@@ -30,6 +30,10 @@ E.g.
#define DEPRECATED __declspec(deprecated)
#endif

/** Attribute for private functions and symbols not intended to be used by plugins.
By default this does nothing, but when #including rack.hpp, it prints a compile-time warning.
*/
#define PRIVATE


/** Concatenates two literals or two macros


+ 4
- 0
include/rack.hpp View File

@@ -99,6 +99,10 @@
#include <simd/functions.hpp>


#undef PRIVATE
#define PRIVATE __attribute__ ((warning ("Using private function or symbol")))


namespace rack {




Loading…
Cancel
Save