Skip to content

Commit e579c05

Browse files
committed
Add a little comment above source loading decision
1 parent 5c32f79 commit e579c05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/io.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ class source
882882
)
883883
-> bool
884884
{
885+
// If filename is stdin, we read from stdin, otherwise we try to read the file
886+
//
885887
std::ifstream fss{ filename };
886888
std::istream& in = filename == "stdin" ? std::cin : fss;
887889
if (filename != "stdin" && !fss.is_open())

0 commit comments

Comments
 (0)