diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-04-10 22:26:57 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-04-10 22:26:57 -0700 |
commit | e90d2ac8ba44fbcf4d5702643f708f2c86bde42e (patch) | |
tree | a52fe8e4efee8176da169998c203c1a93f6a6ff1 /docs/samples/custom_memory_management.cpp | |
parent | 6457f0941204a79ec5ba359a12aa00bf06f0e621 (diff) | |
parent | 405fefc8777c55900a4e44561b545a9abb5276ba (diff) |
Merge branch 'master' into compact
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/>"); |