This commit is contained in:
Zengtudor 2024-08-12 12:24:00 +08:00
parent e43cd81e7c
commit fcf3378fe4
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import { getGlobalProjects } from "./Projects";
export const addProject = (f:{():Project}) =>{
const project = f()
if(getGlobalProjects()[project.name]){
printErrorOrDebug(`the project ${project.name} was used please rename it`)
printErrorOrDebug(`the project name ${project.name} was used please rename it`)
}
getGlobalProjects()[project.name] = project
}

View File

@ -7,6 +7,7 @@ addProject(()=>{
return new CppProject("hello")
})
new CppProject("hello")
new CppProject("hello")
addProject(()=>{
return new CppProject("hello")
})