diff options
author | kobalicek <kobalicek.petr@gmail.com> | 2022-06-17 13:35:21 +0300 |
---|---|---|
committer | kobalicek <kobalicek.petr@gmail.com> | 2022-06-17 13:35:21 +0300 |
commit | 24863770d6dc8d766687717552d49ccfb42ae19d (patch) | |
tree | 9c2b1eca8978ffba0d7f4412b193ef38f0f9aff1 | |
parent | 424418248693bbac4be68d90d5531337abee2c55 (diff) |
[Doc] Updated documentation to use new API (fixes not fixed #368)
-rw-r--r-- | src/asmjit/core.h | 4 | ||||
-rw-r--r-- | src/asmjit/x86/x86builder.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/asmjit/core.h b/src/asmjit/core.h index 4406ed8..5a07269 100644 --- a/src/asmjit/core.h +++ b/src/asmjit/core.h @@ -1494,7 +1494,7 @@ namespace asmjit { //! using namespace asmjit; //! //! void formattingExample(BaseBuilder* builder) { -//! FormatFlags formatFlags = FormatFlags::kNone; +//! FormatOptions formatOptions {}; //! //! // This also shows how temporary strings can be used. //! StringTmp<512> sb; @@ -1503,7 +1503,7 @@ namespace asmjit { //! // were zero (no extra flags), and the builder instance, which we have //! // provided. An overloaded version also exists, which accepts begin and //! // and end nodes, which can be used to only format a range of nodes. -//! Formatter::formatNodeList(sb, formatFlags, builder); +//! Formatter::formatNodeList(sb, formatOptions, builder); //! //! // You can do whatever else with the string, it's always null terminated, //! // so it can be passed to C functions like printf(). diff --git a/src/asmjit/x86/x86builder.h b/src/asmjit/x86/x86builder.h index 40e3a60..5671c9d 100644 --- a/src/asmjit/x86/x86builder.h +++ b/src/asmjit/x86/x86builder.h @@ -36,8 +36,9 @@ ASMJIT_BEGIN_SUB_NAMESPACE(x86) //! // Small helper function to print the current content of `cb`. //! static void dumpCode(BaseBuilder& builder, const char* phase) { //! String sb; -//! FormatFlags formatFlags = FormatFlags::kNone; -//! Formatter::formatNodeList(sb, formatFlags, &builder); +//! formatOptions formatOptions {}; +//! +//! Formatter::formatNodeList(sb, formatOptions, &builder); //! printf("%s:\n%s\n", phase, sb.data()); //! } //! |