diff options
| author | ame <[email protected]> | 2025-11-24 21:19:57 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2025-11-24 21:19:57 -0600 |
| commit | 691a82c3a7ce7e5f43a15f8751cacc792efa339f (patch) | |
| tree | 14945a44c9c96ccbecbb8f84946176d2e2703590 /src/lua.c | |
| parent | 07eeacf5b013061d6e76505ad08c5c9581fecfba (diff) | |
better error and better thread:res return
Diffstat (limited to 'src/lua.c')
| -rw-r--r-- | src/lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -272,10 +272,11 @@ void luaI_deepcopy(lua_State* src, lua_State* dest, enum deep_copy_flags flags){ lua_pushlightuserdata(dest, lua_touserdata(src, -1));
break;
case LUA_TTHREAD:
+ sprintf(stderr, "unable to copy LUA_TTHREAD, pushing nil\n");
lua_pushnil(dest);
break;
default:
- printf("unknown type %i vs (old)%i\n",lua_type(src, -1), type);
+ sprintf(stderr, "unknown type %i vs (old)%i\n",lua_type(src, -1), type);
//abort();
lua_pushnil(dest);
break;
|
