Add submodules, namespace json to prepare for the addition of rapidjson (sigh)

This commit is contained in:
Henrik Rydgård committed 2018-08-13 00:18:54 +02:00
1 parent 42f4d7b40f
commit eddaf97938
12 files changed
+42 -7

No files matched your search

+4
View File
@@ -2,6 +2,8 @@
#include "file/vfs.h"
#include "json/json_reader.h"
namespace json {
JsonReader::JsonReader(const std::string &filename) {
size_t buf_size;
buffer_ = (char *)VFSReadFile(filename.c_str(), &buf_size);
@@ -117,3 +119,5 @@ bool JsonGet::getBool(const char *child_name, bool default_value) const {
}
return default_value;
}
} // namespace json