mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Add Data:getFFIPointer. Similar to Data:getPointer but returns a cdata pointer directly (or nil if the FFI isn't available).
It should be preferred instead of Data:getPointer because the latter uses lightuserdata which can't store more all possible memory addresses on some new arm64 architectures, when LuaJIT is used.
This commit is contained in:
@@ -29,6 +29,7 @@ namespace love
|
||||
namespace data
|
||||
{
|
||||
|
||||
void luax_rundatawrapper(lua_State *L, const love::Type &type);
|
||||
Data *luax_checkdata(lua_State *L, int idx);
|
||||
int luaopen_data(lua_State *L);
|
||||
extern const luaL_Reg w_Data_functions[];
|
||||
|
||||
Reference in New Issue
Block a user