#pragma once #include class Platform { private: static std::function handleEvent; private: static void timer (void *); public: enum Type { JS, SDL }; static Platform::Type getType (); static void run (std::function handleEvent); };