MCPcopy Create free account
hub / github.com/SoarGroup/Soar / soar_test_all_monitorable_callbacks

Function soar_test_all_monitorable_callbacks

Core/SoarKernel/src/callback.cpp:672–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670
671
672void soar_test_all_monitorable_callbacks(agent* thisAgent)
673{
674 int i; // i was originally of type SOAR_CALLBACK_TYPE, changed for c++ compatibility (5/1/02)
675 static const char* test_callback_name = "test";
676
677 for (i = 1; i < NUMBER_OF_MONITORABLE_CALLBACKS; i++)
678 {
679 soar_add_callback(thisAgent, static_cast<SOAR_CALLBACK_TYPE>(i),
680 reinterpret_cast<soar_callback_fn>(soar_callback_test_callback), i,
681 static_cast<void*>(const_cast<char*>(soar_callback_enum_to_name(static_cast<SOAR_CALLBACK_TYPE>(i), true))),
682 NULL, test_callback_name);
683 }
684}
685

Callers

nothing calls this directly

Calls 2

soar_add_callbackFunction · 0.85

Tested by

no test coverage detected