Make api_require's nodes const (#1296)
This commit is contained in:
parent
b7e9ca6585
commit
81b8747d80
|
@ -916,7 +916,7 @@ typedef struct lua_function_node {
|
||||||
#define P(FUNC) { "lua_" #FUNC, (fptr)(lua_##FUNC) }
|
#define P(FUNC) { "lua_" #FUNC, (fptr)(lua_##FUNC) }
|
||||||
#define U(FUNC) { "luaL_" #FUNC, (fptr)(luaL_##FUNC) }
|
#define U(FUNC) { "luaL_" #FUNC, (fptr)(luaL_##FUNC) }
|
||||||
static void* api_require(const char* symbol) {
|
static void* api_require(const char* symbol) {
|
||||||
static lua_function_node nodes[] = {
|
static const lua_function_node nodes[] = {
|
||||||
P(atpanic), P(checkstack),
|
P(atpanic), P(checkstack),
|
||||||
P(close), P(concat), P(copy), P(createtable), P(dump),
|
P(close), P(concat), P(copy), P(createtable), P(dump),
|
||||||
P(error), P(gc), P(getallocf), P(getfield),
|
P(error), P(gc), P(getallocf), P(getfield),
|
||||||
|
|
Loading…
Reference in New Issue