mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 04:52:59 +01:00
Changed the format a little
This commit is contained in:
parent
d47f72be0c
commit
862f04104d
@ -110,10 +110,8 @@ struct define<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>> {
|
|||||||
if(size > 0) {
|
if(size > 0) {
|
||||||
msgpack::object *ptr = o.via.array.ptr;
|
msgpack::object *ptr = o.via.array.ptr;
|
||||||
switch(size) {
|
switch(size) {
|
||||||
default:
|
default:<%(i).downto(0) {|j|%>
|
||||||
<%(i).downto(0) {|j|%>
|
|
||||||
case <%=j+1%>: ptr[<%=j%>].convert(&a<%=j%>);<%}%>
|
case <%=j+1%>: ptr[<%=j%>].convert(&a<%=j%>);<%}%>
|
||||||
;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user