Objective-C源码转C源码

clang编译选项-rewrite-objc,可以将Objective-C代码翻译到C代码

1
-rewrite-objc           Rewrite Objective-C source to C++
1
2
3
int main(int argc, char **argv) {
return 0;
}
1
clang -rewrite-objc test.m