mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Pop stack element used as argument of lua_topointer
This commit is contained in:
parent
929e3f27a0
commit
511765c734
@ -432,6 +432,7 @@ namespace sol {
|
||||
const void* pointer() const noexcept {
|
||||
int si = push();
|
||||
const void* vp = lua_topointer(lua_state(), -si);
|
||||
pop();
|
||||
return vp;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user