-/* Copyright (c) 2010-2019. The SimGrid Team.
+/* Copyright (c) 2010-2020. The SimGrid Team.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
*/
const char* sglua_tostring(lua_State* L, int index)
{
-
static char buff[64];
switch (lua_type(L, index)) {
-
case LUA_TNIL:
snprintf(buff, 4, "nil");
break;
*/
const char* sglua_keyvalue_tostring(lua_State* L, int key_index, int value_index)
{
-
static char buff[64];
/* value_tostring also always returns the same pointer */
int len = snprintf(buff, 63, "[%s] -> ", sglua_tostring(L, key_index));