Mercurial > hg > Game > Cerium
annotate example/post_function/ppe/Hello.cc @ 1786:ba6ffc679a8f draft
minor fix
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 Nov 2013 21:06:44 +0900 |
parents | 94d82f2c842f |
children |
rev | line source |
---|---|
109 | 1 #include <stdio.h> |
2 #include "SchedTask.h" | |
3 #include "Hello.h" | |
4 #include "Func.h" | |
5 | |
298 | 6 /* これは必須 */ |
109 | 7 SchedDefineTask(Hello); |
8 | |
467
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
9 static int |
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
10 run(SchedTask *s, void *rbuf, void *wbuf) |
109 | 11 { |
625
94d82f2c842f
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
467
diff
changeset
|
12 long id = (long)s->get_param(0); |
109 | 13 |
625
94d82f2c842f
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
467
diff
changeset
|
14 s->printf("Hello, World!! post_func output %ld\n", id); |
109 | 15 |
16 return 0; | |
17 } |