Attemp to solve some singleheader's problems

This commit is contained in:
ioioioio 2019-07-02 16:24:56 -04:00
parent 9a6a146183
commit b335af8507
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#include "../singleheader/simdjson.h"
#include <iostream>
using namespace simdjson;
int main() {
const char *filename = JSON_TEST_PATH;
padded_string p = get_corpus(filename);
@ -13,7 +15,7 @@ int main() {
}
const int res = json_parse(p, pj);
if (res) {
std::cerr << simdjson::errorMsg(res) << std::endl;
std::cerr << errorMsg(res) << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;