Skip to content

Commit

Permalink
FunctionListGenerator: Fixed __usercall detection
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fadely committed Mar 17, 2016
1 parent e94a1d0 commit bcaa50b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FunctionListGenerator/Program.cs
Expand Up @@ -9,8 +9,8 @@ namespace FunctionListGenerator
{
static class Program
{
static readonly Regex functiontype = new Regex(@"^(?<returntype>(?:const )?(?:signed |unsigned )?[A-Za-z_][A-Za-z_0-9]*(?: ?\*)?) ?(?<callconv>__cdecl|__stdcall|__fastcall|__thiscall|__usercall)?(?:<(?<returnreg>[^>]+)>)?\((?<arguments>.*)\)$", RegexOptions.CultureInvariant);
static readonly Regex argument = new Regex(@"(?<name>[^<]+)(?:<(?<register>[^>]+)>)?", RegexOptions.CultureInvariant);
static readonly Regex functiontype = new Regex(@"^(?<returntype>(?:const )?(?:signed |unsigned )?[A-Za-z_][A-Za-z_0-9]*(?: ?\*)?) ?(?<callconv>__cdecl|__stdcall|__fastcall|__thiscall|__usercall)?(?:@<(?<returnreg>[^>]+)>)?\((?<arguments>.*)\)$", RegexOptions.CultureInvariant);
static readonly Regex argument = new Regex(@"(?<name>[^<@]+)(?:@<(?<register>[^>]+)>)?", RegexOptions.CultureInvariant);
static readonly Regex functionptr = new Regex(@"\((?:__cdecl|__stdcall|__fastcall|__thiscall)? \*(?<name>[A-Za-z_][A-Za-z_0-9]*)\)", RegexOptions.CultureInvariant);

static void Main(string[] args)
Expand Down

0 comments on commit bcaa50b

Please sign in to comment.