fix lua::create_lambda and lua::create_lambda_nothrow

This commit is contained in:
MihailRis
2025-01-13 04:20:48 +03:00
parent 390d54c212
commit b9707e11ca
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -21,6 +21,11 @@ namespace lua {
}
inline void pop(lua::State* L, int n = 1) {
#ifndef NDEBUG
if (lua_gettop(L) < n) {
abort();
}
#endif
lua_pop(L, n);
}
inline void insert(lua::State* L, int idx) {