mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-21 15:51:44 +02:00
Shortcut av_push()
This commit is contained in:
@@ -166,7 +166,8 @@ STATIC_INLINE int template_callback_array(unpack_user* u PERL_UNUSED_DECL, unsig
|
||||
STATIC_INLINE int template_callback_array_item(unpack_user* u PERL_UNUSED_DECL, SV** c, SV* o)
|
||||
{
|
||||
dTHX;
|
||||
av_push((AV*)SvRV(*c), o);
|
||||
AV* const a = (AV*)SvRV(*c);
|
||||
(void)av_store(a, AvFILLp(a) + 1, o); // the same as av_push(a, o)
|
||||
SvREFCNT_inc_simple_void_NN(o);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user