cgen: add a `[_fastcall]` fn attribute (#14016)

pull/14006/head weekly.2022.15
fleur 2022-04-12 16:06:56 +02:00 committed by GitHub
parent a810fbb80e
commit 6718958058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2150,6 +2150,9 @@ fn (mut g Gen) write_fn_attrs(attrs []ast.Attr) string {
// prefixed by windows to indicate they're for advanced users only and not really supported by V.
fn_attrs += '__stdcall '
}
'_fastcall' {
fn_attrs += '__fastcall '
}
'console' {
g.force_main_console = true
}