diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-05-15 06:50:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 06:50:39 +0200 |
commit | 4857c462d5a9dc68519ab3c6996523bdcccb883f (patch) | |
tree | 74ebcd14983e7fa609fca20337f829c6893c4354 /lib/core | |
parent | 2ce592a209f4cd7f59c009a01e4ac4037e63a7bd (diff) | |
download | Nim-4857c462d5a9dc68519ab3c6996523bdcccb883f.tar.gz |
Revert "fix #14873 properly by skipping `abi` field in importc type (#17944)" (#17992)
This reverts commit 98c29c01eb91a0c6ce7da09380a272eebe6bca6f.
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/locks.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/core/locks.nim b/lib/core/locks.nim index baec45829..92967b9db 100644 --- a/lib/core/locks.nim +++ b/lib/core/locks.nim @@ -28,6 +28,11 @@ type {.push stackTrace: off.} + +proc `$`*(lock: Lock): string = + # workaround bug #14873 + result = "()" + proc initLock*(lock: var Lock) {.inline.} = ## Initializes the given lock. when not defined(js): |