15 Oct
2012
15 Oct
'12
10:26 p.m.
1. check for "stack underflow"; and/or
such things are dealt with
By assert, I mean: assert(inputstack[#inputstack], "Input stack should never be empty when toppath() is called.")
2. check if the file "somefile.tex" exists in the directory being popped from the stack. Just for "bug catching"...
it all happens before a file is loaded so the normal reporting is applied
I meant an "assert()" inside toppath() and cleanpath(). But, as you said, this kind of "assertion" belongs to a "test case". André Caldas.