Lua 调用RenderTexture:end()方法报错

local renderTexture = cc.RenderTexture:create(display.width, display.height);
renderTexture:align(display.CENTER,0,0):addTo(self)
renderTexture:begin()
eraser:visit()
renderTexture:end()

最后一句报错,说end这儿有语法错误,请问怎么解决? 用的quick-x 3.3 final版本

end是lua的关键字

是啊,但是 renderTexture:end() 这个的结束也是end,好像有点冲突

是否是cocos2d-x lua 3x版本的bug?

用endToLua

    /** end is key word of lua, use other name to export to lua. */
    inline void endToLua(){ end();};


```

多谢~~~~~~~~~~~~~~~~~~~~

哥们怎么用,不太明白