Merge branch 'master' into 12.0-development

This commit is contained in:
Alex Szpakowski
2020-09-21 22:35:19 -03:00
8 changed files with 21 additions and 13 deletions
+4 -4
View File
@@ -1,8 +1,4 @@
#include <string.h>
#include "glad.hpp"
namespace glad {
#ifdef GLAD_USE_SDL
#include <SDL.h>
@@ -13,6 +9,10 @@ namespace glad {
#include <assert.h>
#endif
#include "glad.hpp"
namespace glad {
bool gladLoadGL(void) {
#ifdef GLAD_USE_SDL
return gladLoadGLLoader(SDL_GL_GetProcAddress);
+3 -1
View File
@@ -73,7 +73,9 @@
typedef size_t lua_Unsigned;
#endif
#if LUA_VERSION_NUM == 501
#if LUA_VERSION_NUM >= 504
# define LUAL_BUFFER53_BUFFER(B) (B)->b.b
#elif LUA_VERSION_NUM == 501
# define LUAL_BUFFER53_BUFFER(B) (B)->b.buffer
#else
# define LUAL_BUFFER53_BUFFER(B) (B)->b.initb
+1 -2
View File
@@ -309,8 +309,7 @@ int luaopen_luautf8 (lua_State *L) {
lua_setfield(L, -2, l->name);
}
}
lua_pushliteral(L, UTF8PATT);
lua_pushlstring(L, UTF8PATT, sizeof(UTF8PATT) / sizeof(char) - 1);
lua_setfield(L, -2, "charpattern");
return 1;
}