Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index 525c6f87d3d96fbd8504a00474981675c1c1f74d..87276c1296acc338ef233088d26425b49ca5c676 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -27,6 +27,9 @@ namespace internal { |
// General helper functions |
+inline int BoolToInt(bool b) { return b ? 1 : 0; } |
+ |
+ |
// Same as strcmp, but can handle NULL arguments. |
inline bool CStringEquals(const char* s1, const char* s2) { |
return (s1 == s2) || (s1 != NULL && s2 != NULL && strcmp(s1, s2) == 0); |