summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-05-15 06:50:39 +0200
committerGitHub <noreply@github.com>2021-05-15 06:50:39 +0200
commit4857c462d5a9dc68519ab3c6996523bdcccb883f (patch)
tree74ebcd14983e7fa609fca20337f829c6893c4354 /lib/core
parent2ce592a209f4cd7f59c009a01e4ac4037e63a7bd (diff)
downloadNim-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.nim5
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):