lua-users home
lua-l archive

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


Patrick Rapin wrote:
>   dofile "test.lua" -- OK
>   dofile "test.lua" --> test.lua:1: attempt to redefine 'FOO'
> 
> Is there any way to reset the declarations made by ffi.cdef ?

No, there's not. Use require() to load files with C definitions.
It already takes care of not running the code twice.

--Mike