[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Calling individual functions
- From: melance2000@... (Lance Boudreaux)
- Date: Wed, 21 Feb 2001 19:23:53 -0500
This may be a bit of a novice question but I only recently began using Lua. I would like to know if anyone could provide me with some sample code showing how a function is read and called if it inside a lua file from C or C++. I can get Lua to execute a file but I would like to make library like files that can be called from C++. As an example, a function that calculates Miles to KM. I would like to simply call the function from C++ and receive the answers on the stack.
thanks,
Lance
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/