add heightmap:resize(int, int, str)
This commit is contained in:
@@ -306,6 +306,13 @@ namespace lua {
|
||||
inline lua::Integer tointeger(lua::State* L, int idx) {
|
||||
return lua_tointeger(L, idx);
|
||||
}
|
||||
inline uint64_t touinteger(lua::State* L, int idx) {
|
||||
auto val = lua_tointeger(L, idx);
|
||||
if (val < 0) {
|
||||
throw std::runtime_error("negative value");
|
||||
}
|
||||
return static_cast<uint64_t>(val);
|
||||
}
|
||||
inline lua::Number tonumber(lua::State* L, int idx) {
|
||||
return lua_tonumber(L, idx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user