Mercurial > pub > dyncall > dyncall
annotate test/malloc_wx/test_wx.c @ 234:808045066f12
- dynload_plain test ReactOS support
author | Tassilo Philipp |
---|---|
date | Sun, 16 Apr 2017 19:27:32 +0200 |
parents | 3999750fae28 |
children | 3f7c69fadfc3 |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 Package: dyncall | |
4 Library: test | |
5 File: test/malloc_wx/test_wx.c | |
6 Description: | |
7 License: | |
8 | |
9 Copyright (c) 2007-2015 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 | |
27 | |
28 #include "../../dyncallback/dyncall_alloc_wx.h" | |
29 #include "../common/platformInit.h" | |
30 #include "../common/platformInit.c" /* Impl. for functions only used in this translation unit */ | |
31 | |
32 | |
33 int main() | |
34 { | |
35 int err; | |
36 void* ptr; | |
37 dcTest_initPlatform(); | |
38 | |
39 err = dcAllocWX(23, &ptr); | |
203
3999750fae28
- allocwx changes from last commit mentioned in Changelog and adapted testcode
Tassilo Philipp
parents:
0
diff
changeset
|
40 if(!err) err = dcInitExecWX(ptr, 23); |
0 | 41 if(!err) dcFreeWX(ptr, 23); |
42 printf("result: test_alloc_wx: %d\n", (!err) ? 1 : 0 ); | |
43 | |
44 dcTest_deInitPlatform(); | |
45 | |
46 return err; | |
47 } | |
48 |