change dir name
This commit is contained in:
39
bin/main.cpp
Normal file → Executable file
39
bin/main.cpp
Normal file → Executable file
@@ -7,20 +7,20 @@
|
||||
#include <type_traits>
|
||||
#include <string_view>
|
||||
|
||||
#include "string/string.hpp"
|
||||
#include "string/string_concat_helper.hpp"
|
||||
#include "range/range.hpp"
|
||||
#include "container/container.hpp"
|
||||
#include "logger/logger.hpp"
|
||||
#include "math/matrix.hpp"
|
||||
#include "math/vector.hpp"
|
||||
#include "utils/utils.hpp"
|
||||
#include "utils/func_query.hpp"
|
||||
#include "security/validate_email.hpp"
|
||||
#include "security/uuid.hpp"
|
||||
#include "security/is_string.hpp"
|
||||
#include "security/is_link.hpp"
|
||||
#include "string/utf8_len.hpp"
|
||||
#include "hack/string/string.hpp"
|
||||
#include "hack/string/string_concat_helper.hpp"
|
||||
#include "hack/range/range.hpp"
|
||||
#include "hack/container/container.hpp"
|
||||
#include "hack/logger/logger.hpp"
|
||||
#include "hack/math/matrix.hpp"
|
||||
#include "hack/math/vector.hpp"
|
||||
#include "hack/utils/utils.hpp"
|
||||
#include "hack/utils/func_query.hpp"
|
||||
#include "hack/security/validate_email.hpp"
|
||||
#include "hack/security/uuid.hpp"
|
||||
#include "hack/security/is_string.hpp"
|
||||
#include "hack/security/is_link.hpp"
|
||||
#include "hack/string/utf8_len.hpp"
|
||||
|
||||
// for example
|
||||
int f(int a)
|
||||
@@ -44,11 +44,16 @@ struct ForTypeTrace
|
||||
int a;
|
||||
};
|
||||
|
||||
struct counter_test : public hack::utils::counter<int>
|
||||
struct counter_test
|
||||
{
|
||||
counter_test() : id { ++hack::utils::counter<int>::id } { }
|
||||
int id;
|
||||
};
|
||||
|
||||
struct counter_test_2
|
||||
{
|
||||
counter_test_2() : id { ++hack::utils::counter<int>::id } { }
|
||||
int id;
|
||||
};
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
@@ -278,7 +283,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
{// ex: counter
|
||||
counter_test a, b, c;
|
||||
counter_test_2 a1, b1, c1;
|
||||
hack::log()(c.id);
|
||||
hack::log()(c1.id);
|
||||
}
|
||||
|
||||
{// ex: case as string
|
||||
@@ -299,7 +306,7 @@ int main(int argc, char *argv[])
|
||||
query = hack::utils::make_query("super_function", 1, 'c');
|
||||
hack::log()("query", query);
|
||||
|
||||
hack::utils::json js { "test", "data" };
|
||||
hack::utils::JSON js { "test", "data" };
|
||||
query = hack::utils::make_query("super_function", 1, 123.3f, js);
|
||||
hack::log()("query", query);
|
||||
|
||||
|
||||
3
bin/meson.build
Normal file → Executable file
3
bin/meson.build
Normal file → Executable file
@@ -2,5 +2,6 @@ executable(
|
||||
'hack',
|
||||
'main.cpp',
|
||||
dependencies : deps,
|
||||
cpp_args: args
|
||||
cpp_args: args,
|
||||
include_directories : inc
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user