Skip to content

Commit 66b3697

Browse files
author
Matthias Kastner
committed
add linenumber for uncompiled procedure
for uncompiled procedures, both: FuntionList and FunctionInfo return a List with one item "Procedures Not compiled;". If we encounter a function like this, set the line number for it to zero. This will help in uncompiled state to still jump to the correct position.
1 parent 8c62e2d commit 66b3697

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

procedures/CodeBrowser.ipf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ Function addDecoratedFunctions(module, procedure, declWave, lineWave)
301301
for(idx = numEntries; idx < (numEntries + numMatches); idx += 1)
302302
func = StringFromList(idx, funcList)
303303
fi = FunctionInfo(module + "#" + func, procedure)
304+
if(!cmpstr(func, "Procedures Not Compiled"))
305+
fi = ReplaceNumberByKey("PROCLINE", fi, 0)
306+
endif
304307
if(isEmpty(fi))
305308
debugPrint("macro or other error for " + module + "#" + func)
306309
endif

0 commit comments

Comments
 (0)