lua-users home
lua-l archive

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


> Is there a different way to simulate the
> #ifndef FOO
> #define FOO
> ...
> #endif
> style for including chunks of code?

If your chunks are syntatically correct, and are not too big, you can do

  if not FOO then
    FOO = 1
    ...
  end

-- Roberto