示例#1
0
文件: parse.go 项目: h12w/cwrap
func (pac *Package) newArg(a *gcc.Argument) *Argument {
	goName := lowerName(a)
	return &Argument{
		baseParam{
			goName,
			"_" + goName,
			pac.getType(a.CType(), a.PtrKind()),
		},
		a.PtrKind() == gcc.PtrReturn,
	}
}
示例#2
0
文件: parse.go 项目: sbinet/cwrap
func (pac *Package) newArg(a *gcc.Argument, callback bool) Argument {
	goName := pac.lowerName(a)
	return Argument{
		namer{
			goName,
			"_" + goName,
		},
		pac.getConv(a.CType(), a.PtrKind(), callback),
		a.PtrKind() == gcc.PtrReturn,
	}
}