consoleFunctions.h 786 B

1234567891011121314151617181920212223242526272829
  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. #ifdef TORQUE_TOOLS
  14. #define docsURL addGroup("Ungrouped");\
  15. addProtectedField("docsURL", TypeBool, Offset(mDocsClick, ConsoleObject), &getDocsURL, &defaultProtectedGetFn, getDocsLink(__FILE__,__LINE__), AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);\
  16. endGroup("Ungrouped")
  17. #else
  18. #define docsURL NULL
  19. #endif
  20. #endif