cl: _testdata/printf

This commit is contained in:
xushiwei
2024-04-21 17:54:51 +08:00
parent 7cab76f444
commit 7ffedc2da7
5 changed files with 77 additions and 19 deletions

View File

@@ -42,15 +42,15 @@ const (
// -----------------------------------------------------------------------------
const (
nameValist = "__llgo_va_list"
NameValist = "__llgo_va_list"
)
func VArg() *types.Var {
return types.NewParam(0, nil, nameValist, types.Typ[types.Invalid])
return types.NewParam(0, nil, NameValist, types.Typ[types.Invalid])
}
func IsVArg(arg *types.Var) bool {
return arg.Name() == nameValist
return arg.Name() == NameValist
}
func HasVArg(t *types.Tuple, n int) bool {