C ++ Class Wrap in Objective-C

I have a C ++ library that does not use namespaces. I want to port it to Objective-C. The problem is the collision of names between them. I want it to have the same name in Objective-C, which is the name of a C ++ object. But I just can't figure out how best to do this without turning into a mess. I hope to resolve this.

+3
source share
2 answers

The prefix of all your Objective-C classes is the same as you would write a framework on Mac, and Apple with its frames.

+1
source

#define #undef / .. - , ++.

. (-) #define Bar_Function Foo_Function, , Bar_Function #undef Bar_Function #define Bar_Function Foo_Function

, Bar_Function...

, - , .:)

0

Source: https://habr.com/ru/post/1769280/


All Articles