Browse Source

Add deprecated `appGet()` to context.hpp.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
5c47e6e017
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      include/context.hpp

+ 5
- 0
include/context.hpp View File

@@ -56,6 +56,11 @@ You must set the context when preparing each thread if the code uses the APP mac
*/ */
void contextSet(Context* context); void contextSet(Context* context);


/** Deprecated. Use contextGet() or the APP macro to get the current Context. */
DEPRECATED inline Context* appGet() {
return contextGet();
}

/** Accesses the global Context pointer. Just an alias for contextGet(). */ /** Accesses the global Context pointer. Just an alias for contextGet(). */
#define APP rack::contextGet() #define APP rack::contextGet()




Loading…
Cancel
Save