Jump to content
  • Advertisement
Sign in to follow this  

Table argument in C++ method, call from lua

This topic is 4595 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
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!