fix cli dec of array
This commit is contained in:
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…
x
Reference in New Issue
Block a user