Skip to content

Instantly share code, notes, and snippets.

#include <Foundation/Foundation.h>
@protocol MyProto
@end
@interface JSBClass2 <MyProto>
@end
typedef struct jsbStruct
{
(set malloc (NuBridgedFunction functionWithName:"malloc" signature:"li"))
(set memset (NuBridgedFunction functionWithName:"memset" signature:"llil"))
(set getchar (NuBridgedFunction functionWithName:"getchar" signature:"i"))
;; Allocate in 100MB chunks...
(set bytecount (* 1024 1024 100))
(set iterations 10)
(set i 0)