Skip to content

Commit

Permalink
Module shadow warning now uses ENGINE print
Browse files Browse the repository at this point in the history
  • Loading branch information
avivbeeri committed Mar 10, 2022
1 parent d9f1808 commit 23d65d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ VM_resolve_module_name(WrenVM* vm, const char* importer, const char* name) {
matchesInternal = strcmp(name, localName) != 0 && MAP_getModule(&(engine->moduleMap), normalized) != NULL;

if (matchesInternal) {
printf("WARNING: Module import path \"%s\" resolves to internal module \"%s\"\n", name, localName);
ENGINE_printLog(engine, "WARNING: Module import path \"%s\" resolves to internal module \"%s\"\n", name, localName);
}
return normalized;
}
Expand Down

0 comments on commit 23d65d3

Please sign in to comment.