mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
scripts: use #ifdef to check if versions are defined in signal "debug_libs"
This commit is contained in:
@@ -796,7 +796,11 @@ weechat_lua_signal_debug_libs_cb (void *data, const char *signal,
|
||||
(void) type_data;
|
||||
(void) signal_data;
|
||||
|
||||
#ifdef LUA_VERSION
|
||||
weechat_printf (NULL, " %s: %s", LUA_PLUGIN_NAME, LUA_VERSION);
|
||||
#else
|
||||
weechat_printf (NULL, " %s: (?)", LUA_PLUGIN_NAME);
|
||||
#endif
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user