You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
402 B
33 lines
402 B
4 years ago
|
|
||
|
// 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();
|
||
|
}
|
||
|
|