mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
16 lines
233 B
C++
16 lines
233 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StdLogSetup(LOG_COUT|LOG_FILE);
|
|
|
|
try {
|
|
CoWork co;
|
|
co & [] { throw "Worker exception"; };
|
|
}
|
|
catch(const char *s) {
|
|
LOG("Caught: " << s);
|
|
}
|
|
}
|