X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..eccbf35b8a571119740167cd5ffa6876b519171d:/src/bindings/lua/lua_utils.hpp diff --git a/src/bindings/lua/lua_utils.hpp b/src/bindings/lua/lua_utils.hpp index a7d63bcbe1..a42bc901f2 100644 --- a/src/bindings/lua/lua_utils.hpp +++ b/src/bindings/lua/lua_utils.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -9,25 +9,9 @@ #define LUA_UTILS_HPP #include +#include -/** - * @brief A chunk of memory. - * - * This structure is used as the userdata parameter of lua_Writer. - */ -struct s_sglua_buffer_t { - char* data; - size_t size; - size_t capacity; -}; -typedef s_sglua_buffer_t* sglua_buffer_t; - -const char* sglua_tostring(lua_State* L, int index); -const char* sglua_keyvalue_tostring(lua_State* L, int key_index, int value_index); -void sglua_stack_dump(lua_State* L, const char* msg); -static int sglua_dump_table(lua_State* L); -void* sglua_checkudata_debug(lua_State* L, int ud, const char* tname); -const char* sglua_get_spaces(int length); -int sglua_memory_writer(lua_State* L, const void* source, size_t size, void* userdata); +std::string sglua_tostring(lua_State* L, int index); +std::string sglua_keyvalue_tostring(lua_State* L, int key_index, int value_index); #endif