fix cli dec of array
parent
3d72f44205
commit
6aefdd58a1
|
@ -71,3 +71,10 @@ func APIParamTypeDecToString(t *APIParamType) string {
|
|||
ret = ret + t.Typename
|
||||
return ret
|
||||
}
|
||||
|
||||
func APIParamTypeUseRef(t *APIParamType) string {
|
||||
if t.IsArray || !t.Ispointer {
|
||||
return "&"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue