add Go bindings

This commit is contained in:
Ryan Hileman
2015-08-27 21:13:50 -07:00
parent b335cf016c
commit c5bcb02847
14 changed files with 2720 additions and 0 deletions

View File

@ -23,6 +23,21 @@ template = {
'comment_open': '#',
'comment_close': '',
},
'go': {
'header': "package unicorn\n// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [%s_const.go]\nconst (",
'footer': ")",
'line_format': '%s = %s\n',
'out_file': './go/unicorn/%s_const.go',
# prefixes for constant filenames of all archs - case sensitive
'arm.h': 'arm',
'arm64.h': 'arm64',
'mips.h': 'mips',
'x86.h': 'x86',
'sparc.h': 'sparc',
'm68k.h': 'm68k',
'comment_open': '//',
'comment_close': '',
},
}
# markup for comments to be added to autogen files