calculate AssetsMacro.cacheVersion at compile time

This commit is contained in:
shohei909
2018-09-17 00:19:48 +09:00
committed by Joshua Granick
parent 0dff611130
commit 3f2b1c09d3

View File

@@ -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)};
}