NilFoundation/zkllvm-blueprint

Stop generating functions with defines.

martun opened this issue · 0 comments

In test/mock/mocked_components.cpp and include/nil/blueprint/components/mock/mocked_components.hpp we are generating classes/functions with defines.

That makes debugging impossible, even compilation errors are hard to find. The compiler does not tell me which line has an error, because the whole generated function is on a single line :)

Consider using simple std::function-s, pass them to some template classes, but do not generate any code with defines.

We should restrict usage of defines to minimum.