[cfe-dev] [Patch][ObjC][Proposal] NSValue literals
AlexDenisov
1101.debian at gmail.com
Sun Nov 16 04:17:03 PST 2014
Patch extends boxing expressions to support NSValue.
Some C structures might be boxed into a NSValue, e.g.: NSPoint, CGPoint, NSRect, etc.
This patch extends boxing expressions to accept the structures, that could be used to construct NSValue object:
NSPoint p;
NSValue *point = @(p);
CGRect r;
NSValue rect = @(r);
Full list of supported structures:
NSPoint, NSSize, NSRect, CGPoint, CGSize, CGRect, NSRange.
--
AlexDenisov
Software Engineer, https://github.com/AlexDenisov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141116/f7f3fe51/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsvalue_literals.diff
Type: application/octet-stream
Size: 19554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141116/f7f3fe51/attachment.obj>
More information about the cfe-dev
mailing list