fix bug in new makeSymbolName()

This commit is contained in:
2025-11-11 09:25:02 -06:00
parent 6e8b2938b5
commit 2c53e74229

View File

@@ -642,6 +642,10 @@ class Prelude {
#if macro
namespace = haxe.io.Path.withoutExtension(haxe.io.Path.withoutDirectory(haxe.macro.Context.getPosInfos(haxe.macro.Context.currentPos()).file));
#end
// I guess currentPos() can return '?' for the file...
namespace = namespace.replace("?", "");
if (!symbols.exists(namespace)) symbols[namespace] = 0;
return 's${symbols[namespace]++}___${namespace}';