fixed @compute_id() to accept non-constants

This commit is contained in:
Alessandro Mauri 2025-10-27 11:01:50 +01:00
parent 18a86e8aab
commit 49666294dc

View File

@ -162,7 +162,7 @@ macro Id @compute_id(...)
{ {
Id id = (Id)$$LINE.hash() ^ (Id)@str_hash($$FILE); Id id = (Id)$$LINE.hash() ^ (Id)@str_hash($$FILE);
$for var $i = 0; $i < $vacount; $i++: $for var $i = 0; $i < $vacount; $i++:
id ^= (Id)$vaconst[$i].hash(); id ^= (Id)$vaexpr[$i].hash();
$endfor $endfor
return id; return id;
} }