Hi
I'm trying to figure out how premake.override is supposed to work
I got the latest version from git ..compiled it and I added the following code in premake5.lua file
print(premake.vstudio.vc2010)
premake.override(premake.vstudio.vc2010, "project", function(base, prj)
premake.w('<!-- Generated by Premake ' .. _PREMAKE_VERSION .. ' -->')
base(prj)
end)
and it sems vc2010 is not defined yet
the output that i get is
nil
Error: [string "src/base/_foundation.lua"]:136: attempt to index a nil value (local 'scope')
which makes sense since the scope that I'm overriding is nil
What am I doing wrong ?
Cheers
Mihai