mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-30 16:13:55 +00:00
29 lines
528 B
Objective-C
Executable File
29 lines
528 B
Objective-C
Executable File
//
|
|
// Command.m
|
|
// MacGap
|
|
//
|
|
// Created by Joe Hildebrand on 1/10/12.
|
|
// Copyright (c) 2012 Twitter. All rights reserved.
|
|
//
|
|
|
|
#import "Command.h"
|
|
#import <JavaScriptCore/JSContextRef.h>
|
|
|
|
@implementation Command
|
|
|
|
- (id) initWithContext:(JSContextRef)aContext {
|
|
self = [super init];
|
|
if (!self)
|
|
return nil;
|
|
context = aContext;
|
|
JSGlobalContextRetain((JSGlobalContextRef)context);
|
|
return self;
|
|
}
|
|
|
|
- (void)dealloc
|
|
{
|
|
if (context)
|
|
JSGlobalContextRelease((JSGlobalContextRef)context);
|
|
}
|
|
@end
|