|
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