That would have been my next question.
#ifndef .. # define .. #enif
doesnt really do much if placed appropriatly.
arne
On Mon, 11 Aug 2008, Henrik Grubbström (Lysator) @ Pike (-) developers forum wrote:
After reading precompile.pike I figured out that my cmod misses a DECLARATIONS statement. Not sure why I did not read about that before.. but apparently pike 7.6 did not need it.
DECLARATIONS is supposed to be automatic, but was apparently broken recently in precompile.pike.
arne
On Sun, 10 Aug 2008, Arne Goedeke wrote:
Not sure if that is a problem. Also compilation breaks because in the .c generated by precompile from the .cmod a define for DEFAULT_CMOD_STORAGE is missing. The compile complains about lines like:
DEFAULT_CMOD_STORAGE ptrdiff_t f_validate_fun_num = 0; DEFAULT_CMOD_STORAGE void f_validate(INT32 args) {