Clean up variadic functions and methods.

This commit is contained in:
gmp
2019-05-28 20:04:39 -04:00
parent 1cc0f0e26a
commit 840a055a11
4 changed files with 58 additions and 15 deletions
+10
View File
@@ -305,6 +305,16 @@ func (t *Type) IsFunction() bool {
return t.Node.IsFunction()
}
func (t *Type) IsValist() bool {
if t == nil {
return false
}
if t.GoType() == "__va_list_tag" { // OS dependent
return true
}
return false
}
func (t *Type) ReturnType() *Type {
if rt := t.Node.ReturnType(); rt != nil {
return NewType(rt,t.Class)