summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/pawn/functions.pawn
blob: cdda5e0508fd9f6910f9dd38ac4458e3354f5e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

// 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()
}