load.m
来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· M 代码 · 共 31 行
M
31 行
/* Contributed by Nicola Pero - Wed Mar 7 17:55:04 CET 2001 */#include <objc/objc.h>/* Test that +load is automatically called before main is run */static int static_variable = 0;@interface TestClass{ Class isa;}+ (void) load;@end@implementation TestClass+ (void) load{ static_variable = 1;}@endint main (void){ if (static_variable != 1) { abort (); } return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?