Sam H
Sam H

Reputation: 976

How would I combine C and Objective-C in the same file?

I'm trying to make a Lua compiler for Mac OSX with an interface written in Objective-C and the Lua source code written in C.

Upvotes: 0

Views: 507

Answers (2)

jonmorgan
jonmorgan

Reputation: 2610

Objective-C is a proper superset of C. Any C you write in an Objective-C file is perfectly valid.

Upvotes: 3

SingleNegationElimination
SingleNegationElimination

Reputation: 156128

You already are combining C and Objective C. No extra effort is needed.

Upvotes: 14

Related Questions