24 #ifndef ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_
25 #define ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_
35 void calculate(
unsigned int terms);
37 typedef void (*show_result_callback_type)(
double pi);
38 void setShowResultCallback(show_result_callback_type f);
41 show_result_callback_type m_show_result_callback{};
47 #endif // ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_PICALCULATOR_H_