Skip to content

Instantly share code, notes, and snippets.

#import <objc/objc-runtime.h>
#define LOAD_CLASS(name) LOAD_CLASS_BY_NAME(#name)
#if __OBJC2__
#if TARGET_RT_64_BIT
#define LOAD_CLASS_BY_NAME(name) \
asm(\
".section __DATA,__objc_classrefs,regular,no_dead_strip\n"\
".align 3\n"\
"L_OBJC_CLASS_"name":\n"\
; Save this code to inf file and install it
;
; "CMD Prompt Here" PowerToy
;
; Copyright 1996 Microsoft Corporation
;
[version]
signature="$CHICAGO$"
[CmdHereInstall]
[Version]
Signature="$Windows NT$"
[DefaultInstall]
AddReg=SublimeText3
[SublimeText3]
hkcr,"*\\shell\\SublimeText3",,,"Edit With Sublime Text"
hkcr,"*\\shell\\SublimeText3","Icon",0x20000,"%1%\sublime_text.exe, 0"
hkcr,"*\\shell\\SublimeText3\\command",,,"""%1%\sublime_text.exe"" ""%%1"" %%*"
#define stl_foreach(v, c) for (typeof(c.begin()) v = c.begin(); v != c.end(); ++v)