Well, I wanted use the macros for creating Mocks of CMake default functions that are not scriptable.
mock(add_executable)
assert(5 ARGC)
assert_called(1)
# more manual checks
endmock()
I clould try to make mock() have a load of arguments that track every case you could check. This may be possible, but well this is how i started.
I also dont agree with you that it has no benefit in C. Here is a very simple example, that could be useful.