APIDumpDetailed = TRUE
# NoAddr TRUE causes "address" to be dumped in place of hex addresses
APIDumpNoAddr = FALSE
-# File = TRUE indicates that output should be written to file
-APIDumpFile = TRUE
+# File = TRUE indicates that output should be written to file instead of STDOUT
+APIDumpFile = FALSE
# LogFilename is file to dump to when "File = TRUE" default is "vk_apidump.txt"
APIDumpLogFilename = stdout
# Flush = TRUE causes IO to be flushed after each line that's written
header_txt.append('{')
header_txt.append(' if(writeToFile)')
header_txt.append(' {')
- header_txt.append(' fileStream.open(fileName);')
- header_txt.append(' if ((fileStream.rdstate() & fileStream.failbit) != 0) {')
+ header_txt.append(' if (fileName == "stdout")')
+ header_txt.append(' {')
header_txt.append(' outputStream = &std::cout;')
- header_txt.append(' (*outputStream) << endl << "APIDump ERROR: Bad output filename specified: " << fileName << ". Writing to STDOUT instead" << endl << endl;')
+ header_txt.append(' (*outputStream) << endl << "APIDump output filename \'stdout\' specified. Writing to STDOUT instead of a file." << endl << endl;')
+ header_txt.append(' } else {')
+ header_txt.append(' fileStream.open(fileName);')
+ header_txt.append(' if ((fileStream.rdstate() & fileStream.failbit) != 0) {')
+ header_txt.append(' outputStream = &std::cout;')
+ header_txt.append(' (*outputStream) << endl << "APIDump ERROR: Bad output filename specified: " << fileName << ". Writing to STDOUT instead" << endl << endl;')
+ header_txt.append(' }')
+ header_txt.append(' else')
+ header_txt.append(' outputStream = &fileStream;')
header_txt.append(' }')
- header_txt.append(' else')
- header_txt.append(' outputStream = &fileStream;')
header_txt.append(' }')
header_txt.append(' else')
header_txt.append(' {')