summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/msgs.nim')
-rwxr-xr-xcompiler/msgs.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index df9064ab2..87f5e5650 100755
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -667,3 +667,6 @@ template AssertNotNil*(e: expr): expr =
   if(e == nil): InternalError($InstantiationInfo())
   e
 
+template InternalAssert*(e: bool): stmt =
+  if not e: InternalError($InstantiationInfo())
+