add log
This commit is contained in:
@@ -29,6 +29,7 @@ namespace example
|
|||||||
VE::EMIT(test_event::TEST_EVEN, std::string("test event message ui_layer_double"));
|
VE::EMIT(test_event::TEST_EVEN, std::string("test event message ui_layer_double"));
|
||||||
|
|
||||||
if (ImGui::Button("Test on_detach", ImVec2(128, 130))) on_detach();
|
if (ImGui::Button("Test on_detach", ImVec2(128, 130))) on_detach();
|
||||||
|
if (ImGui::Button("Test on_attach", ImVec2(128, 130))) on_attach();
|
||||||
VE_POP_FONT();
|
VE_POP_FONT();
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ namespace VE
|
|||||||
|
|
||||||
void emit(event e)
|
void emit(event e)
|
||||||
{
|
{
|
||||||
|
hack::log()("emit");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
for(auto [key, f] : m_funcs) m_funcs[key](e);
|
for(auto [key, f] : m_funcs) m_funcs[key](e);
|
||||||
@@ -41,6 +42,8 @@ namespace VE
|
|||||||
{
|
{
|
||||||
hack::error()("ooops...");
|
hack::error()("ooops...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hack::log()("emit end");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user