diff --git a/src/struct.ts b/src/struct.ts index a9f09eb..6a7081b 100644 --- a/src/struct.ts +++ b/src/struct.ts @@ -163,7 +163,7 @@ export class Struct { const shortName = method.shortName; const fullName = method.getName(); const args = getArgsOuter(method); - out += `${INDENT}inline ${formatType(returnType)}${shortName}${args} { \\\n`; + out += `${INDENT}${method.isStatic ? 'static ' : ''}inline ${formatType(returnType)}${shortName}${args} { \\\n`; out += `${INDENT}${INDENT}${returnType.trim() === 'void' ? '' : 'return '}${fullName}(${getArgsInner(method)});\n`; out += `${INDENT}}\n`; }