blob: 853c70adc1aaad6e3036bc4a3a22f87d65df048e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// prototypes
forward bar();
native baz();
foo();
enum rect { left, top, right, bottom }
native intersect[rect](src1[rect], src2[rect]);
native getparam(a[], b[], size) = host_getparam;
// function w/o brace
main()
{
printf("hello\n");
}
foo()
{
bar();
}
stock ts_is_waiting(id)
{
return(ts_get_message(id) == TSMSG_WAITING);
}
// regular old functions
baz()
{
do_something();
}
|