1 /* Copyright (c) 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 /* SimGrid Lua helper functions */
15 * @brief A chunk of memory.
17 * This structure is used as the userdata parameter of lua_Writer.
19 typedef struct s_sglua_buffer {
23 } s_sglua_buffer_t, *sglua_buffer_t;
25 const char* sglua_tostring(lua_State* L, int index);
26 const char* sglua_keyvalue_tostring(lua_State* L, int key_index, int value_index);
27 void sglua_stack_dump(const char *msg, lua_State* L);
28 const char* sglua_get_spaces(int length);
29 int sglua_memory_writer(lua_State* L, const void* source, size_t size, void* userdata);
31 #endif /* LUA_UTILS_H */