Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Sep 7, 2024
1 parent fac6f6a commit 7a395de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,10 @@ static rule *assert_begin(module *m, unsigned nbr_vars, cell *p1, bool consultin
module *tmp_m = find_module(m->pl, name), *save_m = m;

if (!tmp_m) {
if (consulting)
fprintf(stdout, "Error: existence error module %s:(%s)/%u\n", name, C_STR(m, c), c->arity);

return NULL;
//m = module_create(m->pl, name);
} else
m = tmp_m;
Expand All @@ -1635,6 +1639,10 @@ static rule *assert_begin(module *m, unsigned nbr_vars, cell *p1, bool consultin
module *tmp_m = find_module(m->pl, name);

if (!tmp_m) {
if (consulting)
fprintf(stdout, "Error: extistence error module %s:(%s)/%u\n", name, C_STR(m, c), c->arity);

return NULL;
//m = module_create(m->pl, name);
} else
m = tmp_m;
Expand Down

0 comments on commit 7a395de

Please sign in to comment.