Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
  1. The extension uses lua_type to identify how a Lua value has to be written. lua_tonumber returns a double. lua_tointeger also returns a 8-byte int64. I wouldn’t worry too much about f64 being used since every GML value (YYRValue in YYGML.h) is going to be 16 bytes anyway.

  2. The extension works on premise that returning values from Lua should not generate data structures that will have to be manually cleaned up (meaning that failing to do so at every single call site would allow for leaking memory). I think the only way to support this would be to create a lightuserdata that wraps a buffer data pointer to fill up from Lua.