Skip to content

Commit 5066e2f

Browse files
committed
main: add debug-print in verbose mode to makePromise
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent df3e2f5 commit 5066e2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main/promise.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "xtag.h"
2222
#include "numarray.h"
2323
#include "routines.h"
24+
#include "options.h"
2425

2526
#include <string.h>
2627

@@ -70,6 +71,10 @@ int makePromise (const char *parser,
7071
int r;
7172
langType lang = LANG_IGNORE;
7273

74+
verbose("makePromise: %s start(line: %lu, offset: %lu, srcline: %lu), end(line: %lu, offset: %lu)\n",
75+
parser? parser: "*", startLine, startCharOffset, sourceLineOffset,
76+
endLine, endCharOffset);
77+
7378
if ((!isThinStreamSpec(startLine,
7479
startCharOffset,
7580
endLine,

0 commit comments

Comments
 (0)