fix restore foreign functions
This commit is contained in:
parent
1bbded5ef7
commit
e7f5c50707
@ -242,9 +242,10 @@ Yap_ReOpenLoadForeign(void)
|
|||||||
{
|
{
|
||||||
ForeignObj *f_code = ForeignCodeLoaded;
|
ForeignObj *f_code = ForeignCodeLoaded;
|
||||||
Term OldModule = CurrentModule;
|
Term OldModule = CurrentModule;
|
||||||
YapInitProc InitProc = NULL;
|
|
||||||
|
|
||||||
while (f_code != NULL) {
|
while (f_code != NULL) {
|
||||||
|
YapInitProc InitProc = NULL;
|
||||||
|
|
||||||
CurrentModule = f_code->module;
|
CurrentModule = f_code->module;
|
||||||
if(Yap_ReLoadForeign(f_code->objs,f_code->libs,f_code->f,&InitProc)==LOAD_SUCCEEDED) {
|
if(Yap_ReLoadForeign(f_code->objs,f_code->libs,f_code->f,&InitProc)==LOAD_SUCCEEDED) {
|
||||||
if (InitProc)
|
if (InitProc)
|
||||||
|
Reference in New Issue
Block a user