PHP codegen improvements
This commit is contained in:
parent
6e6c15081d
commit
746132d696
3 changed files with 6 additions and 3 deletions
|
|
@ -2163,7 +2163,7 @@ proc `&` *[T](x: T, y: seq[T]): seq[T] {.noSideEffect.} =
|
|||
result[i+1] = y[i]
|
||||
|
||||
when not defined(nimscript):
|
||||
when not defined(JS):
|
||||
when not defined(JS) or defined(nimphp):
|
||||
proc seqToPtr[T](x: seq[T]): pointer {.inline, nosideeffect.} =
|
||||
result = cast[pointer](x)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue