Mercurial > pub > dyncall > dyncall
annotate test/callback_suite/config-random.lua @ 553:a93bb23fca8c
win build fix
author | Tassilo Philipp |
---|---|
date | Mon, 20 Jun 2022 15:25:01 +0200 |
parents | e56241bba0f5 |
children |
rev | line source |
---|---|
0 | 1 -- section 'main' -------------------------------------------------------------- |
2 | |
505 | 3 ncases = 800 -- number of test cases (note: inf loop if higher than max arg permutation) |
0 | 4 mode = "random" -- generatore mode: 'random' or 'ordered' type sequences |
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
0
diff
changeset
|
5 minargs = 0 -- minimum num. of supported arguments (>= 0) |
528
e56241bba0f5
- test/callback_suite: reduce number of args, as it uses macros in generated cases.h and some platforms' preprocessor cannot handle that many args
Tassilo Philipp
parents:
509
diff
changeset
|
6 maxargs = 60 -- maximum num. of supported arguments (>= minargs) |
0 | 7 |
8 | |
9 -- section 'types' ------------------------------------------------------------- | |
10 | |
495
45ac093ca822
- test/callback_suite: make it use shared random sig generator from call_suite and call_suite_aggrs
Tassilo Philipp
parents:
105
diff
changeset
|
11 types = "BcCsSiIjJlLpfd" -- supported argument types |
509 | 12 rtypes = nil -- supported return types (set to nil to use "v"..types) |
0 | 13 |
14 | |
15 -- section 'ordered' ----------------------------------------------------------- | |
16 | |
17 offset = 0 -- permutation index offset (default = 0) | |
18 step = 1 -- permutation index increment (default = 1) | |
19 | |
20 | |
21 -- section 'random' ------------------------------------------------------------ | |
22 | |
495
45ac093ca822
- test/callback_suite: make it use shared random sig generator from call_suite and call_suite_aggrs
Tassilo Philipp
parents:
105
diff
changeset
|
23 seed = 40 -- random seed |
0 | 24 |
25 | |
26 -- section 'calling convention' (useful on Windows for now) -------------------- | |
27 | |
28 api = "" -- calling convention ("__stdcall" or "__fastcall") | |
495
45ac093ca822
- test/callback_suite: make it use shared random sig generator from call_suite and call_suite_aggrs
Tassilo Philipp
parents:
105
diff
changeset
|
29 -- for gcc use "__attribute__((__stdcall__))" or "__attribute__((__fastcall__))" |
0 | 30 ccprefix = "" -- signature prefix ("_s" (stdcall), "_f" (gcc fastcall) or "_F" (microsoft fastcall)) |