diff --git a/bin/main.cpp b/bin/main.cpp index 41d597f..cc10be3 100755 --- a/bin/main.cpp +++ b/bin/main.cpp @@ -21,6 +21,7 @@ #include "hack/security/is_string.hpp" #include "hack/security/is_link.hpp" #include "hack/string/utf8_len.hpp" +#include "hack/macros/macros.hpp" // for example int f(int a) @@ -339,4 +340,12 @@ int main(int argc, char *argv[]) s = hack::string::utf8_len("asdf"); hack::log()(s); } + + hack::log()("============================================================"); + hack::log()("macros"); + + {// ex: macros make_string + std::string s { MAKE_STR(test string) }; + hack::log()(s); + } } diff --git a/src/hack/macros/macros.hpp b/src/hack/macros/macros.hpp new file mode 100644 index 0000000..9dea60a --- /dev/null +++ b/src/hack/macros/macros.hpp @@ -0,0 +1,3 @@ +#define MAKE_STR2(x) #x +#define MAKE_STR(x) MAKE_STR2(x) +