Added cmpMem export (#16484)

* added cmpMem export

* updates

* fix test

* Tiny changelog change

* Add a dot.

Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
Antonis Geralis 2020-12-29 14:27:08 +02:00 • committed by GitHub
commit d5a3c2c2da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 81 additions and 49 deletions

View file

@ -2182,6 +2182,8 @@ when notJSnotNims:
memTrackerOp("moveMem", dest, size)
proc equalMem(a, b: pointer, size: Natural): bool =
nimCmpMem(a, b, size) == 0
proc cmpMem(a, b: pointer, size: Natural): int =
nimCmpMem(a, b, size)
when not defined(js):
proc cmp(x, y: string): int =