summaryrefslogtreecommitdiff
path: root/tools/scaninc/source_file.cpp
diff options
context:
space:
mode:
authorMade <made111@gmx.de>2020-05-15 04:17:23 +0200
committerMade <made111@gmx.de>2020-05-15 04:17:23 +0200
commit4da3a82551b27f94c2f493fbf01cf58db711c03e (patch)
tree1ff9fd6cd8d79402abb9286bbd622901d33a4b54 /tools/scaninc/source_file.cpp
parenta92d77224c8ec645752a56aa35cc8a8457cd4cd3 (diff)
parent0252f2028d60248db23770a6a33030b40fbcee1e (diff)
Merge branch 'master' of https://github.com/martmists/pokediamond
Diffstat (limited to 'tools/scaninc/source_file.cpp')
-rw-r--r--tools/scaninc/source_file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scaninc/source_file.cpp b/tools/scaninc/source_file.cpp
index f23ff6db..5d0281a4 100644
--- a/tools/scaninc/source_file.cpp
+++ b/tools/scaninc/source_file.cpp
@@ -31,7 +31,7 @@ SourceFileType GetFileType(std::string& path)
std::string extension = path.substr(pos + 1);
- if (extension == "c")
+ if (extension == "c" || extension == "cpp")
return SourceFileType::Cpp;
else if (extension == "s")
return SourceFileType::Asm;