Original Post
🔒 Locked
Scripting
Advertisement
The Lua reference has plenty of information on integrating it into C (since that''s what it was designed for in the first place). Look at the lua_do* functions to execute code and lua_register to register your own functions with Lua.


quote:
Original post by Taulin
Can you register class functions? I always thought a function pointer was the same as the next, but I have read some scripting languages do not allow it.
A "class function" has both a function pointer and a this pointer. You can register them with Lua, but it takes a little trickery

quote:
Original post by Skuld
ok, so it''s better to use another scripting language like lua, but how do you install it on a windows system? i''ve tried the lua mailing lists, but they keep saying the same thing: copy all .h .c and compile the project file. how do you specifically install it on MSVC++ 6?
Have you checked if there are any Win32 binaries already available? If so, just put the libraries in your lib directory and the headers in your include directory. Lua''s one and only implementation is 100% ANSI C, so it should be easy to compile your own version too. When I get home (I''m about to head off to HS, I have to go early for some meeting dealy

Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement