what's it?

Hello everyone!

I'm using c++ for game programming. And I'm using cocos2dx for that. If someone used or is using it you maybe see that C++ APIs are #define in font of / prefixes.

For example: CCAction.h

class CC_DLL Action : public Ref, public Clonable{

....
}

As you see it have CC_DLL prefix. I don't know Why it need ?
Last edited on
My guess is that they do it to avoid name collisions with other code. CC probably comes from the two c in Cocos2d.
I have a new question. If I make a class like that. Though I used or did use that prefix. Everything will be ok, is that right ?
Last edited on
It's nothing special about the prefix. It's just part of the name.
thank you very much!
Topic archived. No new replies allowed.