| 18 | } |
| 19 | |
| 20 | void GeneralUtils::IntValidCheck(int* source, const char* section, const char* tag, int defaultValue, int min, int max) |
| 21 | { |
| 22 | if (*source < min || *source>max) |
| 23 | { |
| 24 | Debug::Log("[Developer warning][%s]%s=%d is invalid! Reset to %d.\n", section, tag, *source, defaultValue); |
| 25 | *source = defaultValue; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | void GeneralUtils::DoubleValidCheck(double* source, const char* section, const char* tag, double defaultValue, double min, double max) |
| 30 | { |
nothing calls this directly
no outgoing calls
no test coverage detected