mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Lagom: Add a tiny test program so we can see that something works. :^)
This commit is contained in:
parent
e4c9235c91
commit
67c8748162
Notes:
sideshowbarker
2024-07-19 13:03:46 +09:00
Author: https://github.com/awesomekling
Commit: 67c8748162
2 changed files with 18 additions and 0 deletions
15
Lagom/TestApp.cpp
Normal file
15
Lagom/TestApp.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CTimer.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
CEventLoop event_loop;
|
||||
|
||||
CTimer timer(100, [&] {
|
||||
dbg() << "Timer fired, good-bye! :^)";
|
||||
event_loop.quit(0);
|
||||
});
|
||||
|
||||
return event_loop.exec();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue