consoleFunctions.h 731 B

123456789101112131415161718192021222324
  1. #ifndef _CONSOLFUNCTIONS_H_
  2. #define _CONSOLFUNCTIONS_H_
  3. #ifndef _STRINGFUNCTIONS_H_
  4. #include "core/strings/stringFunctions.h"
  5. #endif
  6. bool isInt(const char* str);
  7. bool isFloat(const char* str);
  8. bool isValidIP(const char* ip);
  9. bool isValidPort(U16 port);
  10. void gotoWebPage(const char* address);
  11. bool getDocsURL(void* obj, const char* array, const char* data);
  12. const char* getDocsLink(const char* filename, U32 lineNumber);
  13. #define docsURL addGroup("Ungrouped");\
  14. addProtectedField("docsURL", TypeBool, Offset(mDocsClick, ConsoleObject), &getDocsURL, &defaultProtectedGetFn, getDocsLink(__FILE__,__LINE__), AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);\
  15. endGroup("Ungrouped")
  16. #endif