mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-21 18:59:32 +00:00
Extracted some state tools to HNHCommon
This commit is contained in:
13
MacPass/MPFlagsHelper.m
Normal file
13
MacPass/MPFlagsHelper.m
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// MPFlagsHelper.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 27/08/14.
|
||||
// Copyright (c) 2014 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPFlagsHelper.h"
|
||||
|
||||
BOOL MPTestFlagInOptions(const NSUInteger flag, const NSUInteger options ) {
|
||||
return (0 != (options & flag));
|
||||
}
|
||||
Reference in New Issue
Block a user