calculate AssetsMacro.cacheVersion at compile time
This commit is contained in:
committed by
Joshua Granick
parent
0dff611130
commit
3f2b1c09d3
@@ -54,7 +54,7 @@ class AssetsMacro {
|
||||
|
||||
macro public static function cacheVersion () {
|
||||
|
||||
return macro Std.int (Math.random () * 1000000);
|
||||
return macro $v{Std.int (Math.random () * 1000000)};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user