Torque3D/Engine/source/console/consoleFunctions.h
marauder2k7 68e762130d Compilation changes
Few compile time attempts to speed things up

Swap include guards for pramga once
Change compile options in the cmakeLists for source
generate a pch

small tweaks
2026-06-04 20:42:09 +01:00

28 lines
778 B
C

#pragma once
#pragma once
#ifndef _CONSOLFUNCTIONS_H_
#define _CONSOLFUNCTIONS_H_
#include "core/strings/stringFunctions.h"
bool isInt(const char* str);
bool isFloat(const char* str);
bool isValidIP(const char* ip);
bool isValidPort(U16 port);
void gotoWebPage(const char* address);
bool getDocsURL(void* obj, const char* array, const char* data);
const char* getDocsLink(const char* filename, U32 lineNumber);
#ifdef TORQUE_TOOLS
#define docsURL addGroup("Ungrouped");\
addProtectedField("docsURL", TypeBool, Offset(mDocsClick, ConsoleObject), &getDocsURL, &defaultProtectedGetFn, getDocsLink(__FILE__,__LINE__), AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);\
endGroup("Ungrouped")
#else
#define docsURL NULL
#endif
#endif