| 299 | } |
| 300 | |
| 301 | static void dumpNamespaceEntries( Stream &stream, Namespace *g, bool callbacks = false ) |
| 302 | { |
| 303 | /// Only print virtual on methods that are members of |
| 304 | /// classes as this allows doxygen to properly do overloads. |
| 305 | const bool isClassMethod = g->mClassRep != NULL; |
| 306 | |
| 307 | // Go through all the entries in the namespace. |
| 308 | for ( Namespace::Entry *ewalk = g->mEntryList; ewalk; ewalk = ewalk->mNext ) |
| 309 | { |
| 310 | S32 eType = ewalk->mType; |
| 311 | |
| 312 | // We do not dump script defined functions... only engine exports. |
| 313 | if( eType == Namespace::Entry::ConsoleFunctionType |
| 314 | || eType == Namespace::Entry::GroupMarker ) |
| 315 | continue; |
| 316 | |
| 317 | if( eType == Namespace::Entry::ScriptCallbackType ) |
| 318 | { |
| 319 | if( !callbacks ) |
| 320 | continue; |
| 321 | } |
| 322 | else if( callbacks ) |
| 323 | continue; |
| 324 | |
| 325 | dumpFunction( stream, isClassMethod, ewalk ); |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | static void dumpClassHeader( Stream &stream, |
| 330 | const char *usage, |
no test coverage detected