lua-users home
lua-l archive

#define with lua

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is it possible to use the "C" #define statemant in lua?
what I am trying to do is this (Im using uncompiles scripts)
--Lua script
#define RED_DOOR 145765
#denine GREEN_DOOR 278434
#define COW 445753
Load_Animation(RED_DOOR) --These are "c" functions made available
Load_Animation(GREEN_DOOR)--to lua
Load_Animation(COW)
How can I do this without pre-compilling the script files? I was thinking maybe adding RED_DOOR as a lua variable, but I will have alot of these #defines as much as 1024.
Any Idea's?
Denis
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

AltStyle によって変換されたページ (->オリジナル) /