[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: #define with lua
- From: rjek@...
- Date: Sun, 21 Jan 2001 19:04:48 +0000
On Sun, Jan 21, 2001 at 06:03:21PM -0000, Denis Lamarche wrote:
> 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
> 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?
Generally, using RED_DOOR = 145765; is much better than using #defines. I'm
sure I'm not on my own in not wanting such a command in Lua.
Rob Kendrick - http://www.digital-scurf.org/
You're ugly and your mother dresses you funny.