PHP codegen improvements

This commit is contained in:
Andreas Rumpf 2016-05-12 03:02:39 +02:00
commit 746132d696
3 changed files with 6 additions and 3 deletions

View file

@ -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: