$(uint|uint64) now works with nimscript (#15644)
* $(uint|uint64) now works with nimscript * fixup
This commit is contained in:
parent
ed0f8a4973
commit
3cbe8d2c53
4 changed files with 23 additions and 22 deletions
|
|
@ -35,8 +35,6 @@ proc goMalloc(size: uint): pointer {.importc: "go_malloc", dynlib: goLib.}
|
|||
proc goSetFinalizer(obj: pointer, f: pointer) {.importc: "set_finalizer", codegenDecl:"$1 $2$3 __asm__ (\"main.Set_finalizer\");\n$1 $2$3", dynlib: goLib.}
|
||||
proc writebarrierptr(dest: PPointer, src: pointer) {.importc: "writebarrierptr", codegenDecl:"$1 $2$3 __asm__ (\"main.Atomic_store_pointer\");\n$1 $2$3", dynlib: goLib.}
|
||||
|
||||
proc `$`*(x: uint64): string {.noSideEffect, raises: [].}
|
||||
|
||||
proc GC_getStatistics(): string =
|
||||
var mstats = goMemStats()
|
||||
result = "[GC] total allocated memory: " & $(mstats.total_alloc) & "\n" &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue