calling c++ function from lua

View: New views
1 Messages — Rating Filter:   Alert me  

calling c++ function from lua

by Aljaz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

I've been wondering how should I handle errors with luabind when c++
function is called from the lua..

To be more specific:
Suppose I have a some function in c++ and this can be called from lua.
What should I do when bad arguments are passed to the function?
I've been thinking of throwing an std::exception but I'm not sure if this is
the right way..

Are there any examples of how those things should be handled?

Thanks a lot for help

Best

Aljaz




-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
luabind-user mailing list
luabind-user@...
https://lists.sourceforge.net/lists/listinfo/luabind-user