Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added new case to lua_state_cloner.c: LUA_TNONE
authorChristian Heinrich <christian.heinrich@livando.com>
Wed, 25 Mar 2015 16:08:26 +0000 (17:08 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 15 Oct 2015 17:17:17 +0000 (19:17 +0200)
- This should be called if the top value does not exist.

src/bindings/lua/lua_state_cloner.c

index 12f552f..64a4f8d 100644 (file)
@@ -232,6 +232,10 @@ void sglua_copy_value(lua_State* src, lua_State* dst) {
     case LUA_TTHREAD:
       sglua_copy_thread(src, dst);
       break;
+
+    case LUA_TNONE:
+        XBT_ERROR("This index is acceptable but non-valid");
+      break;
   }
 
   XBT_DEBUG("%sData copied", sglua_get_spaces(indent));