mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update userdata serialization
This commit is contained in:
parent
2f729bd3cb
commit
1300488a82
1 changed files with 3 additions and 0 deletions
|
|
@ -103,6 +103,9 @@ dv::value lua::tovalue(State* L, int idx) {
|
|||
case LUA_TTHREAD:
|
||||
return "<thread " + to_ptr_string(L, idx) + ">";
|
||||
case LUA_TUSERDATA:
|
||||
if (auto userdata = touserdata<Userdata>(L, idx)) {
|
||||
return "<userdata:" + userdata->getTypeName() + " " + to_ptr_string(L, idx) + ">";
|
||||
}
|
||||
return "<userdata " + to_ptr_string(L, idx) + ">";
|
||||
case LUA_TLIGHTUSERDATA:
|
||||
return "<lightuserdata " + to_ptr_string(L, idx) + ">";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue