From fa157082ac8db71e3312ca97fe1ceb7f56546fcb Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Tue, 26 Oct 2010 01:26:06 +0900 Subject: Add `object_hook` option to unpack and `default` option to pack. (see simplejson for how to use). --- msgpack/unpack_template.h | 1 + 1 file changed, 1 insertion(+) (limited to 'msgpack/unpack_template.h') diff --git a/msgpack/unpack_template.h b/msgpack/unpack_template.h index ca6e1f3..1fdedd7 100644 --- a/msgpack/unpack_template.h +++ b/msgpack/unpack_template.h @@ -317,6 +317,7 @@ _push: case CT_MAP_VALUE: if(msgpack_unpack_callback(_map_item)(user, &c->obj, c->map_key, obj) < 0) { goto _failed; } if(--c->count == 0) { + msgpack_unpack_callback(_map_end)(user, &c->obj); obj = c->obj; --top; /*printf("stack pop %d\n", top);*/ -- cgit v1.2.1