Skip to content

Commit

Permalink
fix C boiler generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalmishraa committed Aug 24, 2024
1 parent 2e0a9b0 commit c8700c3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function generateFullCpp({
})
.join("\n ");
const outputType = outputFields[0].type;
const functionCall = `std::${outputType} result = ${functionName}(${inputFields.map((field) => field.name).join(", ")});`;
const functionCall = `${outputType} result = ${functionName}(${inputFields.map((field) => field.name).join(", ")});`;
const outputWrite = `std::cout << result << std::endl;`;

return ` #ifndef _GLIBCXX_NO_ASSERT
Expand Down Expand Up @@ -109,7 +109,6 @@ export default function generateFullCpp({
#include <unordered_set>
#endif
using namespace std;
##USER_CODE_HERE##
Expand Down

0 comments on commit c8700c3

Please sign in to comment.