diff --git a/src/Generator/Generators/C/CCodeGenerator.cs b/src/Generator/Generators/C/CCodeGenerator.cs index 98a7e600..d456a90d 100644 --- a/src/Generator/Generators/C/CCodeGenerator.cs +++ b/src/Generator/Generators/C/CCodeGenerator.cs @@ -276,7 +276,7 @@ namespace CppSharp.Generators.C "_Thread_local", "__func__", "__objc_yes", "__objc_no", }; - public bool IsReservedKeywordC(string id) => CReservedKeywords.Contains(id); + public static bool IsReservedKeywordC(string id) => CReservedKeywords.Contains(id); static readonly List CppReservedKeywords = new List { // C++ 2.11p1: Keywords. @@ -293,8 +293,8 @@ namespace CppSharp.Generators.C "thread_local" }; - public bool IsReservedKeywordCpp(string id) => CppReservedKeywords.Contains(id); + public static bool IsReservedKeywordCpp(string id) => CppReservedKeywords.Contains(id); - public bool IsReservedKeyword(string id) => IsReservedKeywordC(id) || IsReservedKeywordCpp(id); + public static bool IsReservedKeyword(string id) => IsReservedKeywordC(id) || IsReservedKeywordCpp(id); } }