Skip to content

Commit cc3d7cf

Browse files
committed
adds index.cc for use with bale
1 parent 257826a commit cc3d7cf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

index.cc

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include "index.h"
2+
3+
export {
4+
5+
Timeout t;
6+
7+
public:
8+
9+
void sleep(int n) {
10+
t.sleep(n);
11+
}
12+
13+
Timeout setTimeout(int n) {
14+
Timeout timeout;
15+
timeout.set(n);
16+
return timeout;
17+
}
18+
}
19+

0 commit comments

Comments
 (0)