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

will_return_always() not working


Perhaps this is related to my setup, I am using mingw on windows.

will_return_always() is not working.
I tracked it down to the function name being stored with an extra set of
quotes.
""myFunctionName""

I think this is occurring because will_return_always() stringifies function
when calling will_return_count() and will_return_count() stringifies the
function again.

I got it to work by removing the stringification in the will_return_always
macro:

#define will_return_always(function, value) \
    will_return_count(function, (value), -1)

I tried to report this through the bug tracker but could not successfully
create an account.

Thanks,
Travis