Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar: nothing before the includes
[simgrid.git] / src / simix / simcalls.py
index c6854e5..706dc92 100755 (executable)
@@ -235,7 +235,7 @@ def header(name):
 def handle(fd, func, simcalls, guarded_simcalls):
     def nonempty(e): 
         return e != ''
-    fd.write('\n'.join(filter(nonempty, func(simcall) for simcall in simcalls)))
+    fd.write('\n'.join(filter(nonempty, (func(simcall) for simcall in simcalls))))
 
     for guard, list in guarded_simcalls.items():
         fd.write('\n#if %s\n' % (guard))
@@ -290,7 +290,7 @@ if __name__ == '__main__':
 
     fd.write('#include <xbt/base.h>\n')
     fd.write('#include "smx_private.h"\n')
-    fd.write('#if HAVE_MC\n')
+    fd.write('#if SIMGRID_HAVE_MC\n')
     fd.write('#include "src/mc/mc_forward.hpp"\n')
     fd.write('#endif\n')
     fd.write('\n')