Skip to content

Instantly share code, notes, and snippets.

@rolandkakonyi
Created February 1, 2020 14:22
Show Gist options
  • Save rolandkakonyi/7587ce7ea75378e8c09046897ff35564 to your computer and use it in GitHub Desktop.
Save rolandkakonyi/7587ce7ea75378e8c09046897ff35564 to your computer and use it in GitHub Desktop.
Swifty Macros for Objective-C
#if defined(__cplusplus)
#define let auto const
#else
#define let const __auto_type
#endif
#if defined(__cplusplus)
#define var auto
#else
#define var __auto_type
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment