From 8b1ac6d83526633faeadc9149510a5d35d8c8f34 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Mon, 4 Jun 2018 08:48:08 +0700 Subject: [PATCH] Fix compilation with C++ backend. Fixes #25. --- godot/nim/godotnim.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godot/nim/godotnim.nim b/godot/nim/godotnim.nim index 2d66ebd..8f3d6fb 100644 --- a/godot/nim/godotnim.nim +++ b/godot/nim/godotnim.nim @@ -774,7 +774,7 @@ proc fromVariant*[T: Table or TableRef](t: var T, result = ConversionResult.TypeError {.emit: """/*TYPESECTION*/ -void NimMain(void); +N_LIB_EXPORT N_CDECL(void, NimMain)(void); N_NOINLINE(void, setStackBottom)(void* thestackbottom); """.}