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
More char* -> std::string conversions.
[simgrid.git]
/
src
/
bindings
/
lua
/
simgrid_lua.cpp
diff --git
a/src/bindings/lua/simgrid_lua.cpp
b/src/bindings/lua/simgrid_lua.cpp
index 63d3dd900a4e4b7c17629b8dda9181b1a5dd6d0f..4fa39db576ee19eb5e5a8f321faa8cc2cc8022ad 100644
(file)
--- a/
src/bindings/lua/simgrid_lua.cpp
+++ b/
src/bindings/lua/simgrid_lua.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-20
19
. The SimGrid Team.
+/* Copyright (c) 2010-20
20
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-26,8
+26,8
@@
extern "C" int luaopen_simgrid(lua_State* L);
*
* - Argument 1 (string): the text to print
*/
*
* - Argument 1 (string): the text to print
*/
-static int debug(lua_State* L)
{
-
+static int debug(lua_State* L)
+{
const char* str = luaL_checkstring(L, 1);
XBT_DEBUG("%s", str);
return 0;
const char* str = luaL_checkstring(L, 1);
XBT_DEBUG("%s", str);
return 0;
@@
-85,7
+85,7
@@
static int dump(lua_State* L)
lua_pushvalue(L, -2); /* table key val key */
lua_pushvalue(L, -2); /* table key val key */
- XBT_DEBUG("%s", sglua_keyvalue_tostring(L, -1, -2));
+ XBT_DEBUG("%s", sglua_keyvalue_tostring(L, -1, -2)
.c_str()
);
}
lua_settop(L, argc); // Remove everything except the initial arguments
}
lua_settop(L, argc); // Remove everything except the initial arguments