mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #718 from jquesnelle/topointer-stack-fix
Pop stack element used as argument of lua_topointer
This commit is contained in:
commit
2a68514241
|
@ -432,6 +432,7 @@ namespace sol {
|
|||
const void* pointer() const noexcept {
|
||||
int si = push();
|
||||
const void* vp = lua_topointer(lua_state(), -si);
|
||||
lua_pop(this->lua_state(), si);
|
||||
return vp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user