.mm里面写一个C++的静态方法?

新建cocos2dx 项目的时候,会默认生成一个RootViewController.h和RootViewController.mm 为了被别的C++ 的类引用,我想在RootViewController里面写一个C++的静态方法。请问我应该怎么实现?