From 1568d13a11564a7d9d62aaf6a79b9b04172a2a45 Mon Sep 17 00:00:00 2001 From: Zefram Date: Sun, 12 Nov 2017 05:58:36 +0000 Subject: better document macros taking literal strings When giving a function-style prototype for a macro taking a literal string parameter, put a string literal in place of a type for that parameter. This goofy appearance makes it obvious that this isn't really a function, and clues the reader in that the parameter can't actually be an arbitrary expression of the right type. Also change the nonsensical "NUL-terminated literal string" to "literal string" to describe these parameters. Fixes [perl #116286]. --- scope.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scope.h') diff --git a/scope.h b/scope.h index 88c182dc03..c6f4bc4350 100644 --- a/scope.h +++ b/scope.h @@ -175,7 +175,7 @@ given literal string with the new scope. =for apidoc Ams||LEAVE_with_name(name) Same as C>, but when debugging is enabled it first checks that the -scope has the given name. C must be a C-terminated literal string. +scope has the given name. C must be a literal string. =cut */ -- cgit v1.2.1