#pragma once #include namespace Tesses::Framework { #if defined(_WIN32) int TF_Main(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd, std::function(std::vector& args)> cb, std::function)> clo); #define TF_WebApp(fn,clo) std::shared_ptr fn(std::vector& args); int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { return Tesses::Framework::TF_Main(hInstance,hPrevInstance,lpCmdLine,nShowCmd,fn,clo);} #else int TF_Main(int argc, char** argv, std::function(std::vector& args)> cb, std::function)> clo); #define TF_WebApp(fn,clo) std::shared_ptr fn(std::vector& args); int main(int argc, char** argv) { return Tesses::Framework::TF_Main(argc, argv, fn, clo); } #endif void TF_WebAppSetTitle(std::string title); };