mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
26 lines
433 B
Objective-C
Executable file
26 lines
433 B
Objective-C
Executable file
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "AppContext.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
static id<AppContext> currentAppContext = nil;
|
|
|
|
id<AppContext> CurrentAppContext(void)
|
|
{
|
|
OWSCAssert(currentAppContext);
|
|
|
|
return currentAppContext;
|
|
}
|
|
|
|
void SetCurrentAppContext(id<AppContext> appContext)
|
|
{
|
|
OWSCAssert(!currentAppContext);
|
|
|
|
currentAppContext = appContext;
|
|
}
|
|
|
|
NS_ASSUME_NONNULL_END
|