From 23d65d30c3bc447057dd0672d15eff5f50e94e79 Mon Sep 17 00:00:00 2001 From: Aviv Beeri Date: Thu, 10 Mar 2022 16:19:45 +0000 Subject: [PATCH] Module shadow warning now uses ENGINE print --- src/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.c b/src/vm.c index 921124a8..7771b7c6 100644 --- a/src/vm.c +++ b/src/vm.c @@ -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; }