Added type checking functions

added some type checking functions to TorqueScript.
This commit is contained in:
Nathan Bowhay 2015-01-29 11:40:45 -08:00
parent 014b566014
commit 39d5563a8c
2 changed files with 216 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#ifndef _CONSOLFUNCTIONS_H_
#define _CONSOLFUNCTIONS_H_
#ifndef _STRINGFUNCTIONS_H_
#include "core/strings/stringFunctions.h"
#endif
bool isInt(const char* str);
bool isFloat(const char* str);
bool isValidIP(const char* ip);
bool isValidPort(U16 port);
#endif