Split wrap_Graphics.lua into two files to work around VS2013's 16kB limit for raw string literals.

This commit is contained in:
Alex Szpakowski
2018-12-13 22:34:30 -04:00
parent 1896f82f5d
commit dc5e43adf3
4 changed files with 502 additions and 476 deletions
+10
View File
@@ -45,6 +45,11 @@ static const char graphics_lua[] =
#include "wrap_Graphics.lua"
;
// This is in a separate file because VS2013 has a 16KB limit for raw strings..
static const char graphics_shader_lua[] =
#include "wrap_GraphicsShader.lua"
;
namespace love
{
namespace graphics
@@ -3075,6 +3080,11 @@ extern "C" int luaopen_love_graphics(lua_State *L)
else
lua_error(L);
if (luaL_loadbuffer(L, (const char *)graphics_shader_lua, sizeof(graphics_shader_lua), "wrap_GraphicsShader.lua") == 0)
lua_call(L, 0, 0);
else
lua_error(L);
return n;
}