I suspect the real problem is with the other macros __PRETTY_FUNCTION, __FILE__
and __LINE__. These are magic macros defined by some compilers, but they might
not be defined by your compiler. You can try to make the compile work simply by
replaceing these arguments with actual values. Try replacing this:
nerr_raisef(__PRETTY_FUNCTION__ , __FILE__ , __LINE__ , e , f , __VA_ARGS__)
With this:
nerr_raisef("test", "test" , "test" , e , f , __VA_ARGS__)
-- Schmidt, Mihael wrote:
> Question: Why is dict.c calling nerr_raise with only 2 parm. Shouldn't it be
> three parms (error type, format string and error message)? I definitely got
> something wrong but I don't know what?
nerr_raise() is setup to work like the printf() family of functions. For
example, you might have:
nerr_raise(NERR_ASSERT, "problematic value %d", local_variable_int);
Because the statement you referenced has no % formatting, it has no arguments.
nerr_raise(NERR_ASSERT, "value or new are NULL");