Skip to content

Commit

Permalink
Merge pull request #2055 from Sonicadvance1/update_description_rippin…
Browse files Browse the repository at this point in the history
…g_script

Scripts: Updates DefinitionExtract
  • Loading branch information
Sonicadvance1 committed Oct 10, 2022
2 parents 2b1ef97 + c49e114 commit 3977e1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Scripts/DefinitionExtract.py
Expand Up @@ -154,6 +154,9 @@ def HandleFunctionDeclCursor(Arch, Cursor):
elif (Child.kind == CursorKind.ASM_LABEL_ATTR):
# Whatever you are we don't care about you
return Arch
elif (Child.kind == CursorKind.WARN_UNUSED_RESULT_ATTR):
# Whatever you are we don't care about you
return Arch
elif (Child.kind == CursorKind.VISIBILITY_ATTR):
pass
else:
Expand All @@ -165,7 +168,7 @@ def HandleFunctionDeclCursor(Arch, Cursor):

def PrintFunctionDecls():
for Decl in FunctionDecls:
print("fn(\"{0} {1}({2})\")".format(Decl.Ret, Decl.Name, ", ".join(Decl.Params)))
print("template<> struct fex_gen_config<{}> {{}};".format(Decl.Name))

def FindClangArguments(OriginalArguments):
AddedArguments = ["clang"]
Expand Down

0 comments on commit 3977e1f

Please sign in to comment.