add static inline attribute

pull/1648/head
S-YOU 2019-08-18 10:44:04 +09:00 committed by Alexander Medvednikov
parent 8e1c31e860
commit 329e7bd2c8
1 changed files with 2 additions and 0 deletions

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