fixed @compute_id() to accept non-constants
This commit is contained in:
parent
18a86e8aab
commit
49666294dc
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ macro Id @compute_id(...)
|
|||
{
|
||||
Id id = (Id)$$LINE.hash() ^ (Id)@str_hash($$FILE);
|
||||
$for var $i = 0; $i < $vacount; $i++:
|
||||
id ^= (Id)$vaconst[$i].hash();
|
||||
id ^= (Id)$vaexpr[$i].hash();
|
||||
$endfor
|
||||
return id;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue