Skip to content

Commit

Permalink
Fix enumexport and interface param name (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiodionisi authored Mar 7, 2024
1 parent 6a98f82 commit 32e7360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generate/codegen/gen_param.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (p *Param) ObjcDeclare() string {

func (p *Param) GoName() (name string) {
switch p.Name {
case "type", "range", "map", "string", "select":
case "type", "range", "map", "string", "select", "interface":
name = p.Name + "_"
default:
name = p.Name
Expand Down
4 changes: 2 additions & 2 deletions generate/tools/enumexport.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func exportConstants(db *generate.SymbolCache, framework *modules.Module, platfo
continue
}
if s.Kind == "Constant" && s.Type == "Global Variable" {
stmt, err := s.Parse()
stmt, err := s.Parse(platform)
if err != nil {
log.Fatalf("%s: %s in '%s'", s.Name, err, s.Declaration)
}
Expand All @@ -177,7 +177,7 @@ func exportConstants(db *generate.SymbolCache, framework *modules.Module, platfo
if typ.Declaration == "" {
return nil, false
}
typdef, err := typ.Parse()
typdef, err := typ.Parse(platform)
if err != nil {
log.Fatalf("%s: %s in '%s'", typ.Name, err, typ.Declaration)
}
Expand Down

0 comments on commit 32e7360

Please sign in to comment.