Add the file name extension '.cs' for C# stub generator 71/171171/1
authorJunghoon Park <jh9216.park@samsung.com>
Tue, 27 Feb 2018 07:28:08 +0000 (16:28 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Tue, 27 Feb 2018 07:28:08 +0000 (16:28 +0900)
Change-Id: I5b7f33843970e687834a097c6603c02d457a4986
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
idlc/main.cc

index 4931b4f..8088152 100644 (file)
@@ -171,7 +171,7 @@ int main(int argc, char** argv) {
   } else {
     if (options->GetLanguage() == "C#") {
       tidl::CsStubGen stub(ps.GetDoc());
-      stub.Run(options->GetOutput());
+      stub.Run(options->GetOutput() + ".cs");
     } else if (options->GetLanguage() == "C++") {
       tidl::CppStubHeaderGen stub_header(ps.GetDoc());
       stub_header.Run(options->GetOutput() + ".h");