Jump to content
  • Advertisement
Sign in to follow this  

Table argument in C++ method, call from lua

This topic is 4415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have the following method in my class Entity : setTable( int size, Point pointTable[]); My class Entity is declared into the lua state. I call this method from the lua script : entity = Entity() point = Point(0,2,2) tabPoint = {point} entity:setTable(tabPoint) During the run , I have an exception : <XLuaException(err)> msg=lua_pcall failed:no overload of 'Entity:setTable' matched the arguments (Entity, number, table) candidates are: Entity:setTable(number, Point*) How can I do to call setTable from lua. Thank

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!