fix dump
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "hack/utils/singleton.hpp"
|
||||
#include "hack/utils/func_query.hpp"
|
||||
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
int f(int a)
|
||||
{
|
||||
hack::log()("f implementatioln");
|
||||
@@ -54,12 +56,12 @@ auto main(int argc, char *argv[]) -> int
|
||||
hack::log("")("func_concat result: ", combine(a), a);
|
||||
}
|
||||
|
||||
{// ex: utils::exec
|
||||
hack::log()(hack::utils::unix_cmd("ls"));
|
||||
hack::log()(hack::utils::unix_cmd("pwd"));
|
||||
auto t = hack::utils::unix_cmd("pwd");
|
||||
hack::log::type_trace(t);
|
||||
}
|
||||
// {// ex: utils::exec
|
||||
// hack::log()(hack::utils::unix_cmd("ls"));
|
||||
// hack::log()(hack::utils::unix_cmd("pwd"));
|
||||
// auto t = hack::utils::unix_cmd("pwd");
|
||||
// hack::log::type_trace(t);
|
||||
// }
|
||||
|
||||
{// ex: counter
|
||||
counter_test a, b, c;
|
||||
@@ -88,7 +90,7 @@ auto main(int argc, char *argv[]) -> int
|
||||
hack::log()("JSON sting", query);
|
||||
|
||||
nlohmann::json js { "test", "data" };
|
||||
query = hack::utils::make_query("super_function", 1'000'000, 123.3f, js);
|
||||
query = hack::utils::make_query<nlohmann::json>("super_function", 1'000'000, 123.3f, js);
|
||||
hack::log()("JSON", query);
|
||||
|
||||
query = hack::utils::make_query("super_function");
|
||||
|
||||
Reference in New Issue
Block a user