diff options
Diffstat (limited to 'Source/SPFunctions.m')
-rw-r--r-- | Source/SPFunctions.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPFunctions.m b/Source/SPFunctions.m index 6f11d236..93008059 100644 --- a/Source/SPFunctions.m +++ b/Source/SPFunctions.m @@ -76,3 +76,10 @@ NSUInteger SPIntS2U(NSInteger i) return (NSUInteger)i; } + +id SPBoxNil(id object) +{ + if(object == nil) return [NSNull null]; + + return object; +} |