Skip to content

Commit

Permalink
Fix lua_State* handling for parameters with names other than "L".
Browse files Browse the repository at this point in the history
  • Loading branch information
timmensch committed Feb 1, 2012
1 parent dc7406e commit f4eac1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dub/LuaBinder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ function private:getParamVar(method, param, delta)
if param.name == 'L' then
return ''
else
return param.name .. ' = L;\n'
return "lua_State * ".. param.name .. ' = L;\n'
end
end
local p = private.getParam(self, method, param, delta)
Expand Down

0 comments on commit f4eac1d

Please sign in to comment.