Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Prefer nullptr and bool literals.
[simgrid.git] / src / bindings / lua / lua_host.cpp
index 298f30f..05baee2 100644 (file)
@@ -170,10 +170,7 @@ static int l_host_tostring(lua_State * L)
   return 1;
 }
 
-static const luaL_Reg host_meta[] = {
-  {"__tostring", l_host_tostring},
-  {0, 0}
-};
+static const luaL_Reg host_meta[] = {{"__tostring", l_host_tostring}, {nullptr, nullptr}};
 
 /**
  * @brief Registers the host functions into the table simgrid.host.