summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]bootstrap.sh0
-rw-r--r--lib/core/macros.nim3
2 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index dd551b52d..dd551b52d 100755..100644
--- a/bootstrap.sh
+++ b/bootstrap.sh
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 85ebdbfd0..8577296f0 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -884,7 +884,7 @@ proc boolVal*(n: NimNode): bool {.compileTime, noSideEffect.} =
   else: n == bindSym"true" # hacky solution for now
 
 when not defined(booting):
-  template emit*(e: static[string]): stmt =
+  template emit*(e: static[string]): stmt {.deprecated.} =
     ## accepts a single string argument and treats it as nim code
     ## that should be inserted verbatim in the program
     ## Example:
@@ -892,6 +892,7 @@ when not defined(booting):
     ## .. code-block:: nim
     ##   emit("echo " & '"' & "hello world".toUpper & '"')
     ##
+    ## Deprecated since version 0.15 since it's so rarely useful.
     macro payload: stmt {.gensym.} =
       result = parseStmt(e)
     payload()