A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename C++ only header files from .h to .hpp.
[simgrid.git]
/
src
/
bindings
/
lua
/
lua_host.cpp
diff --git
a/src/bindings/lua/lua_host.cpp
b/src/bindings/lua/lua_host.cpp
index
71484a4
..
f511ec3
100644
(file)
--- a/
src/bindings/lua/lua_host.cpp
+++ b/
src/bindings/lua/lua_host.cpp
@@
-5,7
+5,7
@@
/* SimGrid Lua bindings */
/* SimGrid Lua bindings */
-#include "lua_private.h"
+#include "lua_private.h
pp
"
#include "simgrid/s4u/Host.hpp"
extern "C" {
#include <lauxlib.h>
#include "simgrid/s4u/Host.hpp"
extern "C" {
#include <lauxlib.h>
@@
-34,7
+34,7
@@
sg_host_t sglua_check_host(lua_State * L, int index)
if (pi == nullptr)
XBT_ERROR("luaL_checkudata() returned nullptr");
sg_host_t ht = *pi;
if (pi == nullptr)
XBT_ERROR("luaL_checkudata() returned nullptr");
sg_host_t ht = *pi;
- if (
!
ht)
+ if (
not
ht)
luaL_error(L, "null Host");
return ht;
}
luaL_error(L, "null Host");
return ht;
}
@@
-77,7
+77,7
@@
static int l_host_get_by_name(lua_State * L)
static int l_host_get_name(lua_State * L)
{
sg_host_t ht = sglua_check_host(L, 1);
static int l_host_get_name(lua_State * L)
{
sg_host_t ht = sglua_check_host(L, 1);
- lua_pushstring(L, ht->
c
name());
+ lua_pushstring(L, ht->
getC
name());
return 1;
}
return 1;
}