From 327096ae0df60cf1ad6f59f6dafe474e58b2dbab Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 20 Oct 2009 21:36:02 +0000 Subject: Added memory allocation function getters (can't write generic function to parse with ownership transfer without them) git-svn-id: http://pugixml.googlecode.com/svn/trunk@164 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/pugixml.cpp') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 9ae757b..302a015 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3110,4 +3110,14 @@ namespace pugi global_allocate = allocate; global_deallocate = deallocate; } + + allocation_function PUGIXML_FUNCTION get_memory_allocation_function() + { + return global_allocate; + } + + deallocation_function PUGIXML_FUNCTION get_memory_deallocation_function() + { + return global_deallocate; + } } -- cgit v1.2.3