Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion godot/nim/godotmacros.nim
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type
returnType: NimNode
nimNode: NimNode
isNoGodot: bool
isGdExport:bool

ObjectDecl = ref object
name: string
Expand Down Expand Up @@ -164,6 +165,7 @@ proc parseMethod(meth: NimNode): MethodDecl =
returnType: meth[3][0],
isVirtual: meth.kind == nnkMethodDef,
isNoGodot: isNoGodot,
isGdExport: isGdExport,
nimNode: meth
)
for i in 1..<meth[3].len:
Expand Down Expand Up @@ -605,7 +607,7 @@ N_NOINLINE(void, setStackBottom)(void* thestackbottom);
minArgs = idx
argTypes.add(arg.typ)

let godotMethodName = if meth.isVirtual: "_" & toGodotStyle(meth.name)
let godotMethodName = if meth.isVirtual and not meth.isGdExport: "_" & toGodotStyle(meth.name)
else: toGodotStyle(meth.name)
let hasReturnValueBool = not (meth.returnType.isNil or
meth.returnType.kind == nnkEmpty or
Expand Down