fixed @compute_id() to accept non-constants
This commit is contained in:
parent
18a86e8aab
commit
49666294dc
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user