module check irssi version

Add explicit checks into every module to match the ABI version defined
in common.h
This commit is contained in:
ailin-nemui 2015-11-24 00:08:20 +01:00
commit ff8ccaf08b
10 changed files with 58 additions and 1 deletions

View file

@ -466,3 +466,8 @@ void perl_core_deinit(void)
signal_remove("script error", (SIGNAL_FUNC) sig_script_error);
PERL_SYS_TERM();
}
void perl_core_abicheck(int *version)
{
*version = IRSSI_ABI_VERSION;
}

View file

@ -278,3 +278,8 @@ void fe_perl_deinit(void)
perl_core_print_script_error(TRUE);
}
void fe_perl_abicheck(int *version)
{
*version = IRSSI_ABI_VERSION;
}