diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-31 13:16:24 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-31 13:16:24 -0400 |
commit | c75a270a82fdf7f92d118c61237fea034cbc17f3 (patch) | |
tree | 691a074cd6e8e3b43d61ec9f370c6ca0518590fc /tools/jsonproc/jsonproc.cpp | |
parent | 0a880566f5889cdeb6fa3f96f5916c39dbb16b38 (diff) |
Bump inja; trdata and trpoke to json
Diffstat (limited to 'tools/jsonproc/jsonproc.cpp')
-rw-r--r-- | tools/jsonproc/jsonproc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/jsonproc/jsonproc.cpp b/tools/jsonproc/jsonproc.cpp index bcbe53e4..48905da4 100644 --- a/tools/jsonproc/jsonproc.cpp +++ b/tools/jsonproc/jsonproc.cpp @@ -128,6 +128,10 @@ int main(int argc, char *argv[]) return args.at(0)->empty(); }); + env.add_void_callback("log", 1, [](Arguments& args) { + std::cout << args.at(0)->get<int>() << std::endl; + }); + try { env.write_with_json_file(templateFilepath, jsonfilepath, outputFilepath); |