1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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
}