aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFunctions.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFunctions.h')
-rw-r--r--Source/SPFunctions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPFunctions.h b/Source/SPFunctions.h
index 0cda7e36..6a7845c0 100644
--- a/Source/SPFunctions.h
+++ b/Source/SPFunctions.h
@@ -49,3 +49,10 @@ int SPBetterRandomBytes(uint8_t *buf, size_t count);
* @return the same value, casted to unsigned integer
*/
NSUInteger SPIntS2U(NSInteger i);
+
+/**
+ * Converts nil to NSNull for passing into arrays
+ * @return The object that was passed in or [NSNull null] if object == nil
+ * @see -[SPObjectAdditions unboxNull]
+ */
+id SPBoxNil(id object);