summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scope.h b/scope.h
index 9a196e6eda..b9495673c4 100644
--- a/scope.h
+++ b/scope.h
@@ -110,6 +110,14 @@
} \
} STMT_END
+#ifdef USE_ITHREADS
+# define SAVECOPFILE(cop) SAVEPPTR(CopFILE(cop))
+#else
+# define SAVECOPFILE(cop) SAVESPTR(CopFILEGV(cop))
+#endif
+
+#define SAVECOPLINE(cop) SAVEI16(CopLINE(cop))
+
/* SSNEW() temporarily allocates a specified number of bytes of data on the
* savestack. It returns an integer index into the savestack, because a
* pointer would get broken if the savestack is moved on reallocation.