mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
add static inline attribute
This commit is contained in:
parent
8e1c31e860
commit
329e7bd2c8
@ -278,6 +278,8 @@ fn (p mut Parser) fn_decl() {
|
||||
}
|
||||
dll_export_linkage := if p.os == .msvc && p.attr == 'live' && p.pref.is_so {
|
||||
'__declspec(dllexport) '
|
||||
} else if p.attr == 'inline' {
|
||||
'static inline '
|
||||
} else {
|
||||
''
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user