1
0
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:
S-YOU 2019-08-18 10:44:04 +09:00 committed by Alexander Medvednikov
parent 8e1c31e860
commit 329e7bd2c8

View File

@ -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 {
''
}