Here is the code from asyncpg package in apg_core.nim, it works before and
doesn't now:
# cast[<v>](addr <n>[0])
proc castPointer0(n: NimNode, v: string): NimNode {.compileTime.} =
result = newNimNode(nnkCast).add(
newIdentNode(v),
newNimNode(nnkCommand).add(
newIdentNode("addr"),
newNimNode(nnkBracketExpr).add(n, newLit(0))
)
)
- Re: How to get the address of string mratsim
- Re: How to get the address of string twetzel59
- Re: How to get the address of string slangmgh
- Re: How to get the address of string Krux02
- Re: How to get the address of string slangmgh
