Several love.data functions now take an enum ("data" or "string") to determine whether they return a Data object or a string.

Changed functions are love.data.compress, decompress, encode, decode, and pack.
This commit is contained in:
Alex Szpakowski
2017-12-22 16:13:20 -04:00
parent 9bae1f01ba
commit 9fa73f8b87
9 changed files with 455 additions and 386 deletions
+2
View File
@@ -23,12 +23,14 @@
// LOVE
#include "common/config.h"
#include "common/runtime.h"
#include "DataModule.h"
namespace love
{
namespace data
{
ContainerType luax_checkcontainertype(lua_State *L, int idx);
int w_compress(lua_State *L);
int w_decompress(lua_State *L);
extern "C" LOVE_EXPORT int luaopen_love_data(lua_State *L);