mirror of
https://github.com/OpenEmu/OpenEmu-SDK.git
synced 2025-11-01 10:15:12 +00:00
28 lines
403 B
Objective-C
28 lines
403 B
Objective-C
//
|
|
// NSMutableArray+OEQueueAdditions.m
|
|
// OpenEmu-SDK
|
|
//
|
|
// Created by Remy Demarest on 28/07/2016.
|
|
//
|
|
//
|
|
|
|
#import "NSMutableArray+OEQueueAdditions.h"
|
|
|
|
@implementation NSMutableArray (OEQueueAdditions)
|
|
|
|
- (void)pushObject:(id)object
|
|
{
|
|
[self addObject:object];
|
|
}
|
|
|
|
- (id)popObject
|
|
{
|
|
id ret = self.firstObject;
|
|
if (ret != nil)
|
|
[self removeObjectAtIndex:0];
|
|
|
|
return ret;
|
|
}
|
|
|
|
@end
|