From 329e7bd2c8e51849fe18014336ae9bed9944c31f Mon Sep 17 00:00:00 2001 From: S-YOU Date: Sun, 18 Aug 2019 10:44:04 +0900 Subject: [PATCH] add static inline attribute --- compiler/fn.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/fn.v b/compiler/fn.v index 03431c2f0b..aeccf26728 100644 --- a/compiler/fn.v +++ b/compiler/fn.v @@ -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 { '' }