Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

[WIP] Compile time safe keypath #61

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion extobjc/EXTKeyPathCoding.h
Expand Up @@ -42,7 +42,7 @@ NSString *lowercaseStringPath = @keypath(NSString.new, lowercaseString);
(((void)(NO && ((void)PATH, NO)), strchr(# PATH, '.') + 1))

#define keypath2(OBJ, PATH) \
(((void)(NO && ((void)OBJ.PATH, NO)), # PATH))
"" ? @ # PATH : (__typeof__(((__typeof__(OBJ))nil).PATH, @"")) nil

/**
* \@collectionKeypath allows compile-time verification of key paths across collections NSArray/NSSet etc. Given a real object
Expand Down