diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-03-21 21:03:01 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-03-21 21:03:01 -0700 |
commit | 1a450b302a6339319ed2430312f536ca7690b6a6 (patch) | |
tree | 5820a1ba42dec10df4d8fd7c1ccc9031f9f38dd1 /docs/samples/custom_memory_management.cpp | |
parent | 23e9beb003d947e87dc03904c22db1547010b9df (diff) |
docs: Use AsciiDoc-compatible comments in samples
Diffstat (limited to 'docs/samples/custom_memory_management.cpp')
-rw-r--r-- | docs/samples/custom_memory_management.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/samples/custom_memory_management.cpp b/docs/samples/custom_memory_management.cpp index f11d27e..2cb5520 100644 --- a/docs/samples/custom_memory_management.cpp +++ b/docs/samples/custom_memory_management.cpp @@ -2,7 +2,7 @@ #include <new> -//[code_custom_memory_management_decl +// tag::decl[] void* custom_allocate(size_t size) { return new (std::nothrow) char[size]; @@ -12,13 +12,13 @@ void custom_deallocate(void* ptr) { delete[] static_cast<char*>(ptr); } -//] +// end::decl[] int main() { -//[code_custom_memory_management_call +// tag::call[] pugi::set_memory_management_functions(custom_allocate, custom_deallocate); -//] +// end::call[] pugi::xml_document doc; doc.load_string("<node/>"); |