Is it possible to obtain an intermediate C code from Objective-C?

前端 未结 2 754
花落未央
花落未央 2020-12-18 07:13

As I understand correctly, besides the fact that Objective-C language is a strict superset of a \"clean\" C, added OOP paradigm is simulated by a set of functions partially

2条回答
  •  半阙折子戏
    2020-12-18 07:20

    You could use the clang rewriter to convert to C++. Not aware of a way to go to C though.

    The rewriter is available via the "-rewrite-objc" command line option.

提交回复
热议问题