summaryrefslogtreecommitdiff
path: root/src/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/example.c')
-rw-r--r--src/example.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/example.c b/src/example.c
index 8c1d3cb..c3e729d 100644
--- a/src/example.c
+++ b/src/example.c
@@ -17,6 +17,13 @@
#include <stdio.h>
#include <thunk.h>
+THUNK_DEFINE(nil)
+{
+ puts("no args");
+
+ return 0;
+}
+
THUNK_DEFINE(bye, pulp_t *, p)
{
@@ -38,6 +45,8 @@ THUNK_DEFINE(bar, int, id)
THUNK_DEFINE(foo, pulp_t *, p, int, w, int, h)
{
+ (void) pulp_fiber_new(p, 0, THUNK(nil()));
+
for (int y = 0; y < h; y++) {
printf("\nw=%i h=%i\n", w, h);
for (int x = 0; x < w; x++)
© All Rights Reserved