runtimelib: Disable debug code outside of debug builds

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-01-17 16:56:26 +01:00
parent 7f5d100e51
commit ffccbd5907
3 changed files with 414 additions and 79 deletions
+2
View File
@@ -301,11 +301,13 @@ int bbCountHostIPs(BBStr *host) {
}
int bbHostIP(int index) {
#ifdef _DEBUG
if (debug) {
if (index<1 || index>host_ips.size()) {
ThrowRuntimeException("Host index out of range");
}
}
#endif
return host_ips[index - 1];
}