Mercurial > pub > dyncall > dyncall
comparison test/callback_suite/cases.c @ 505:049e04af13c8
test/callback_suite:
- greatly simplified
- refactored to look more like other test cases (especially call_suite{,_aggrs} for consistency/maintainablity/future code sharing
author | Tassilo Philipp |
---|---|
date | Sat, 09 Apr 2022 13:53:58 +0200 |
parents | |
children | 5a3c07a0f376 |
comparison
equal
deleted
inserted
replaced
504:f263eb7a206e | 505:049e04af13c8 |
---|---|
1 /* | |
2 | |
3 Package: dyncall | |
4 Library: test | |
5 File: test/call_suite/cases.c | |
6 Description: | |
7 License: | |
8 | |
9 Copyright (c) 2011-2022 Daniel Adler <dadler@uni-goettingen.de>, | |
10 Tassilo Philipp <tphilipp@potion-studios.com> | |
11 | |
12 Permission to use, copy, modify, and distribute this software for any | |
13 purpose with or without fee is hereby granted, provided that the above | |
14 copyright notice and this permission notice appear in all copies. | |
15 | |
16 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
17 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
18 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
19 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
23 | |
24 */ | |
25 | |
26 #include "globals.h" | |
27 | |
28 // @@@STRUCT move or remove | |
29 #define CONFIG_API | |
30 | |
31 #define X(CH,T) typedef T CH; | |
32 DEF_TYPES | |
33 #undef X | |
34 | |
35 extern DCValue Result; | |
36 #define M ValueMatrix | |
37 #include "cases.h" | |
38 #undef M | |
39 | |
40 int G_ncases = sizeof(G_sigtab)/sizeof(G_sigtab[0]); | |
41 |