Skip to content

Instantly share code, notes, and snippets.

JasonY iJasonY

Block or report user

Report or block iJasonY

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@iJasonY
iJasonY / main.m
Created Mar 12, 2019 — forked from Skifary/main.m
修改block的实现,先打印参数,再输出原有实现
View main.m
#import <Foundation/Foundation.h>
#import "ffi.h"
NSMutableArray *g_allocations;
ffi_cif g_cif;
ffi_closure *g_closure;
void *g_replacement_invoke;
void *g_origin_invoke;
@iJasonY
iJasonY / main.m
Created Mar 12, 2019 — forked from Skifary/main.m
替换block原有实现
View main.m
#import <Foundation/Foundation.h>
typedef struct __block_impl {
void *isa;
int Flags;
int Reserved;
void *FuncPtr;
}__block_impl;
typedef void(^GlobalBlock)(void);
You can’t perform that action at this time.