equal
deleted
inserted
replaced
25 #cmakedefine DEBUG |
25 #cmakedefine DEBUG |
26 |
26 |
27 // define this if you are building with lua 5.2 |
27 // define this if you are building with lua 5.2 |
28 #cmakedefine HAVE_LUA52 |
28 #cmakedefine HAVE_LUA52 |
29 |
29 |
|
30 // define this if you want lua to create alias to '/lua' at module loading |
|
31 #cmakedefine ENABLE_LUA_ALIAS |
|
32 |
30 // define this to enable exporting mcabber connection for lua-loudmouth |
33 // define this to enable exporting mcabber connection for lua-loudmouth |
31 #cmakedefine LLM_CONNECTION_ENABLE |
34 #cmakedefine LLM_CONNECTION_ENABLE |
32 |
35 |
33 // define this to enable lua-loudmouth log messages handler |
36 // define this to enable lua-loudmouth log messages handler |
34 #cmakedefine LLM_LOG_HANDLER |
37 #cmakedefine LLM_LOG_HANDLER |
39 // priority of glib event sources for timeout and bgread |
42 // priority of glib event sources for timeout and bgread |
40 #define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} ) |
43 #define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} ) |
41 |
44 |
42 #define PROJECT_VERSION ( "${PROJECT_VERSION}" ) |
45 #define PROJECT_VERSION ( "${PROJECT_VERSION}" ) |
43 |
46 |
|
47 #define MLUA_COMMAND_NAME "lua${LUA_VERSION}" |
|
48 #define OPT_MLUA_RC "${OPT_MLUA_RC}" |
|
49 #define OPT_MLUA_LM_DEBUG "${OPT_MLUA_LM_DEBUG}" |
|
50 |
44 #ifndef HAVE_LUA52 |
51 #ifndef HAVE_LUA52 |
45 # define lua_rawlen lua_objlen |
52 # define lua_rawlen lua_objlen |
46 # define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE ) |
53 # define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE ) |
|
54 # define info_lua5_2 info_lua5_1 |
47 #endif |
55 #endif |
48 |
56 |
49 #ifdef DEBUG |
57 #ifdef DEBUG |
50 # include <stdio.h> |
58 # include <stdio.h> |
51 |
59 |