I have a macro that I use at end of functions:
#define FN_EXIT(x) \
cout << "Message"; \
return x;
If I use it as FN_EXIT(1)
, it works okay. Can I use it as FN_EXIT()
for void
returning functions? If not, is there of a passing an argument that would work with return
statement of a void
function?