Hello,
Can a function call a macro ?
I have defined this function :
114:#declare dayfrac_to_local_hr = function (df, tz) {
115: 24.0*limit_zero2one(df + (tz/24.0))
116: }
and i get this error :
line 115
Parse Error: Cannot pass uninitialized identifier as non-optional macro
parameter.
Of course the macro is defined before
73:#macro limit_zero2one(_value)
74: #local limited = _value - floor(_value);
75: #if (limited < 0)
76: #local limited = limited + 1.0;
77: #end
78: limited
79: #end
Hence the question : Can a function call a macro ?
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|