Skip to content
Snippets Groups Projects
Commit 05a23951 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

issue error if redefining a macro

parent 6520cfaf
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,8 @@ int FunctionManager::leaveFunction(gmshFILE * f, std::string &filename, int &lno
int FunctionManager::createFunction(const std::string &name, gmshFILE f,
const std::string &filename, int lno)
{
if(functions->m.find(name) != functions->m.end())
return 0;
File_Position fp;
fp.file = f;
fp.filename = filename;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment