fixed new name of setStackBottom
This commit is contained in:
parent
9f29e2eec9
commit
8d8d095af9
2 changed files with 5 additions and 5 deletions
|
|
@ -545,7 +545,7 @@ proc genType(obj: ObjectDecl): NimNode {.compileTime.} =
|
||||||
methodNameLit, minArgs, maxArgs,
|
methodNameLit, minArgs, maxArgs,
|
||||||
argTypes, methFuncIdent, hasReturnValue) =
|
argTypes, methFuncIdent, hasReturnValue) =
|
||||||
{.emit: """/*TYPESECTION*/
|
{.emit: """/*TYPESECTION*/
|
||||||
N_NOINLINE(void, setStackBottom)(void* thestackbottom);
|
N_NOINLINE(void, nimGC_setStackBottom)(void* thestackbottom);
|
||||||
""".}
|
""".}
|
||||||
proc methFuncIdent(obj: ptr GodotObject, methodData: pointer,
|
proc methFuncIdent(obj: ptr GodotObject, methodData: pointer,
|
||||||
userData: pointer, numArgs: cint,
|
userData: pointer, numArgs: cint,
|
||||||
|
|
@ -553,7 +553,7 @@ N_NOINLINE(void, setStackBottom)(void* thestackbottom);
|
||||||
GodotVariant {.noconv.} =
|
GodotVariant {.noconv.} =
|
||||||
var stackBottom {.volatile.}: pointer
|
var stackBottom {.volatile.}: pointer
|
||||||
{.emit: """
|
{.emit: """
|
||||||
setStackBottom((void*)(&`stackBottom`));
|
nimGC_setStackBottom((void*)(&`stackBottom`));
|
||||||
""".}
|
""".}
|
||||||
let self = cast[classNameIdent](userData)
|
let self = cast[classNameIdent](userData)
|
||||||
const isStaticCall = methodNameLit == cstring"_ready" or
|
const isStaticCall = methodNameLit == cstring"_ready" or
|
||||||
|
|
|
||||||
|
|
@ -831,7 +831,7 @@ proc fromVariant*[T: Table or TableRef or OrderedTable or OrderedTableRef](t: va
|
||||||
|
|
||||||
{.emit: """/*TYPESECTION*/
|
{.emit: """/*TYPESECTION*/
|
||||||
N_LIB_EXPORT N_CDECL(void, NimMain)(void);
|
N_LIB_EXPORT N_CDECL(void, NimMain)(void);
|
||||||
N_NOINLINE(void, setStackBottom)(void* thestackbottom);
|
N_NOINLINE(void, nimGC_setStackBottom)(void* thestackbottom);
|
||||||
""".}
|
""".}
|
||||||
|
|
||||||
var nativeLibHandle: pointer
|
var nativeLibHandle: pointer
|
||||||
|
|
@ -847,7 +847,7 @@ proc godot_nativescript_init(handle: pointer) {.
|
||||||
var stackBottom {.volatile.}: pointer
|
var stackBottom {.volatile.}: pointer
|
||||||
{.emit: """
|
{.emit: """
|
||||||
NimMain();
|
NimMain();
|
||||||
setStackBottom((void*)(&`stackBottom`));
|
nimGC_setStackBottom((void*)(&`stackBottom`));
|
||||||
""".}
|
""".}
|
||||||
GC_fullCollect()
|
GC_fullCollect()
|
||||||
GC_disable()
|
GC_disable()
|
||||||
|
|
@ -884,7 +884,7 @@ proc registerFrameCallback*(cb: proc () {.closure.}) =
|
||||||
proc godot_nativescript_frame() {.cdecl, exportc, dynlib.} =
|
proc godot_nativescript_frame() {.cdecl, exportc, dynlib.} =
|
||||||
var stackBottom {.volatile.}: pointer
|
var stackBottom {.volatile.}: pointer
|
||||||
{.emit: """
|
{.emit: """
|
||||||
setStackBottom((void*)(&`stackBottom`));
|
nimGC_setStackBottom((void*)(&`stackBottom`));
|
||||||
""".}
|
""".}
|
||||||
for cb in idleCallbacks:
|
for cb in idleCallbacks:
|
||||||
cb()
|
cb()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue