#include "macro.hpp" namespace fkstd { void assert_static_fail(Compiler& compiler, std::shared_ptr node, std::shared_ptr program) { try { compiler.compile_prog(node->child(1), program); } catch(std::exception const&) { program->load_const(std::make_shared(TYPE_BOOL, true, node->loc())); return; } std::stringstream ss; ss << "assertion failed"; node->loc().error(LOG_ERROR, ss.str()); } }