rename generated function

self-hosting
MoAlyousef 4 years ago
parent 4cd16c8e42
commit d31c830b4b

@ -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();

Loading…
Cancel
Save