use c++ variadic template instead of variadic function

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent 1c74c5675e
commit df06443470

@ -199,7 +199,8 @@ struct fsm_helper {
fsm_helper::handle_state_change(f, &target_state, &s); fsm_helper::handle_state_change(f, &target_state, &s);
return true; return true;
} }
bool call_react(...) template <typename... Args>
bool call_react(Args...)
{ {
f->log_fsm_activity( f->log_fsm_activity(
"FSM \"%s\": Unhandled event caught: \"%s\"\n", get_type_name<FSM>().c_str(), get_type_name<Event>().c_str()); "FSM \"%s\": Unhandled event caught: \"%s\"\n", get_type_name<FSM>().c_str(), get_type_name<Event>().c_str());

@ -78,7 +78,7 @@ public:
bool process_pdus(); bool process_pdus();
uint8_t* request_buffer(const uint32_t ue_cc_idx, const uint32_t tti, const uint32_t len); uint8_t* request_buffer(const uint32_t ue_cc_idx, const uint32_t tti, const uint32_t len);
void process_pdu(uint8_t* pdu, uint32_t nof_bytes, srslte::pdu_queue::channel_t channel); void process_pdu(uint8_t* pdu, uint32_t nof_bytes, srslte::pdu_queue::channel_t channel) override;
void push_pdu(const uint32_t ue_cc_idx, const uint32_t tti, uint32_t len); void push_pdu(const uint32_t ue_cc_idx, const uint32_t tti, uint32_t len);
void deallocate_pdu(const uint32_t ue_cc_idx, const uint32_t tti); void deallocate_pdu(const uint32_t ue_cc_idx, const uint32_t tti);

Loading…
Cancel
Save