From a4c9f5bd436dae1d99845f50da55bae733129f56 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 4 Aug 2008 16:20:18 +0200 Subject: Add fixnum-aware macros LRETAIN, LRELEASE, LDESTROY, LAUTORELEASE, LASSIGN_COPY, and LASSIGN. --- MLKBinding.m | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'MLKBinding.m') diff --git a/MLKBinding.m b/MLKBinding.m index e6aadd8..2b44ba9 100644 --- a/MLKBinding.m +++ b/MLKBinding.m @@ -18,6 +18,7 @@ #import "MLKBinding.h" #import "runtime-compatibility.h" +#import "util.h" #import #import @@ -40,23 +41,23 @@ static id UNBOUND; -(MLKBinding *) initWithValue:(id)something { self = [super init]; - ASSIGN (value, something); + LASSIGN (value, something); return self; } +(MLKBinding *) binding { - return AUTORELEASE ([[self alloc] init]); + return LAUTORELEASE ([[self alloc] init]); } +(MLKBinding *) bindingWithValue:(id)something { - return AUTORELEASE ([[self alloc] initWithValue:something]); + return LAUTORELEASE ([[self alloc] initWithValue:something]); } -(void) setValue:(id)something { - ASSIGN (value, something); + LASSIGN (value, something); } -(id) value @@ -75,12 +76,12 @@ static id UNBOUND; -(void) makunbound { - ASSIGN (value, UNBOUND); + LASSIGN (value, UNBOUND); } -(void) dealloc { - RELEASE (value); + LRELEASE (value); [super dealloc]; } @end -- cgit v1.2.3