Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill 3 more functions around processes
[simgrid.git] / src / msg / msg_environment.cpp
index a3a3b47..27a3673 100644 (file)
@@ -8,10 +8,10 @@
 #include "xbt/sysdep.h"
 #include "xbt/log.h"
 
-#include "simgrid/s4u/as.hpp"
+#include "simgrid/s4u/As.hpp"
 #include "simgrid/s4u/engine.hpp"
 
-#ifdef HAVE_LUA
+#if HAVE_LUA
 #include <lua.h>
 #include <lauxlib.h>
 #include <lualib.h>
@@ -69,8 +69,8 @@ xbt_dict_t MSG_environment_as_get_routing_sons(msg_as_t as) {
 const char *MSG_environment_as_get_property_value(msg_as_t as, const char *name)
 {
   xbt_dict_t dict = (xbt_dict_t) xbt_lib_get_or_null(as_router_lib, MSG_environment_as_get_name(as), ROUTING_PROP_ASR_LEVEL);
-  if (dict==NULL)
-    return NULL;
+  if (dict==nullptr)
+    return nullptr;
   return (char*) xbt_dict_get_or_null(dict, name);
 }