Mercurial > pub > dyncall > dyncall
comparison test/callback_suite/config-stress1.lua @ 0:3e629dc19168
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:24:28 +0100 |
parents | |
children | 45ac093ca822 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e629dc19168 |
---|---|
1 -- section 'main' -------------------------------------------------------------- | |
2 | |
3 mode = "designed" -- generator mode: 'random', 'ordered' or 'designed' type sequences | |
4 designfile= "stress1.cfg" -- design file | |
5 | |
6 function nlines() | |
7 local cnt = 0 | |
8 for l in io.open(designfile):lines() do | |
9 cnt = cnt + 1 | |
10 end | |
11 return cnt | |
12 end | |
13 | |
14 nsigs = nlines() -- number of test cases | |
15 | |
16 minargs = 0 -- minimum num. of supported arguments (>= 0) | |
17 maxargs = 20 -- maximum num. of supported arguments (>= minargs) | |
18 | |
19 -- section 'types' (not used by 'designed') ------------------------------------ | |
20 | |
21 argtypes = "BcCsSiIjJlLpfd" -- "BcCsSiIjJlLpfd" -- supported argument types | |
22 rettypes = argtypes -- supported return types (currently no void support) | |
23 | |
24 | |
25 -- section 'ordered' ----------------------------------------------------------- | |
26 | |
27 offset = 0 -- permutation index offset (default = 1) | |
28 step = 1 -- permutation index increment (default = 1) | |
29 | |
30 | |
31 -- section 'random' ------------------------------------------------------------ | |
32 | |
33 seed = 1 -- random seed | |
34 | |
35 | |
36 -- section 'calling convention' (useful on Windows for now) -------------------- | |
37 | |
38 api = "" -- calling convention ("__stdcall" or "__fastcall") | |
39 -- for gcc use "__attribute__((__stdcall__))" or "__attribute__((__fastcall__))" | |
40 -- for ms ? | |
41 ccprefix = "" -- signature prefix ("_s" (stdcall), "_f" (gcc fastcall) or "_F" (microsoft fastcall)) |