mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
Inline register_component_ in header for better codegen
This commit is contained in:
@@ -79,7 +79,6 @@ static void insertion_sort_by_priority(Iterator first, Iterator last) {
|
||||
}
|
||||
}
|
||||
|
||||
void Application::register_component_(Component *comp) { this->components_.push_back(comp); }
|
||||
void Application::setup() {
|
||||
ESP_LOGI(TAG, "Running through setup()");
|
||||
ESP_LOGV(TAG, "Sorting components by setup priority");
|
||||
|
||||
@@ -521,7 +521,7 @@ class Application {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void register_component_(Component *comp);
|
||||
inline void register_component_(Component *comp) { this->components_.push_back(comp); }
|
||||
|
||||
void calculate_looping_components_();
|
||||
void add_looping_components_by_state_(bool match_loop_done);
|
||||
|
||||
Reference in New Issue
Block a user