mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Updated hardcoded lua version to 5.2, removed debug from lua_api
This commit is contained in:
parent
d0647e3582
commit
3065b8be06
@ -120,8 +120,8 @@ elif test "x$enable_lua_plugins" != xno; then
|
|||||||
#AX_PROG_LUA
|
#AX_PROG_LUA
|
||||||
#AX_LUA_HEADERS
|
#AX_LUA_HEADERS
|
||||||
#AX_LUA_LIBS
|
#AX_LUA_LIBS
|
||||||
LUA_INCLUDE="-I/usr/include/lua5.1"
|
LUA_INCLUDE="-I/usr/include/lua5.2"
|
||||||
LUA_LIB="-llua5.1"
|
LUA_LIB="-llua5.2"
|
||||||
AM_CONDITIONAL([BUILD_LUA_API], [true])
|
AM_CONDITIONAL([BUILD_LUA_API], [true])
|
||||||
AC_DEFINE([HAVE_LUA], [1], [Lua support])
|
AC_DEFINE([HAVE_LUA], [1], [Lua support])
|
||||||
else
|
else
|
||||||
|
@ -73,7 +73,6 @@ static int
|
|||||||
lua_api_register_timed(lua_State *L)
|
lua_api_register_timed(lua_State *L)
|
||||||
{
|
{
|
||||||
int interval_seconds = lua_tonumber(L, -1);
|
int interval_seconds = lua_tonumber(L, -1);
|
||||||
cons_show("interval seconds = %d", interval_seconds);
|
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
int *p_callback_ref = malloc(sizeof(int));
|
int *p_callback_ref = malloc(sizeof(int));
|
||||||
*p_callback_ref = luaL_ref(L, LUA_REGISTRYINDEX);
|
*p_callback_ref = luaL_ref(L, LUA_REGISTRYINDEX);
|
||||||
|
Loading…
Reference in New Issue
Block a user