From d31c830b4ba618be9897dd4e50ca331e59f97f9a Mon Sep 17 00:00:00 2001 From: MoAlyousef Date: Wed, 9 Sep 2020 23:46:10 +0300 Subject: [PATCH] rename generated function --- src/gen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen.cpp b/src/gen.cpp index fa72adb..2b8fead 100644 --- a/src/gen.cpp +++ b/src/gen.cpp @@ -51,7 +51,7 @@ void generate_project(const char *str) { } else if (!strcmp(str, "static") || !strcmp(str, "shared")) { std::ofstream ofs("src/lib.cpp"); if (ofs.is_open()) { - ofs << "int dll_main() {\n\treturn 0;\n}"; + ofs << "int test() {\n\treturn 0;\n}"; } ofs.flush(); ofs.close();