Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_alloc_wx.h @ 410:7608e34098b0
- cleanups, simplifications, some api clarification, ...
- test cases consistency:
* return status code depending on test results (for actual conformance tests, not stuff that is not an example or hack to check something, ..)
* platform init helper added for some
author | Tassilo Philipp |
---|---|
date | Tue, 05 Oct 2021 21:53:04 +0200 |
parents | f5577f6bf97a |
children | e2899b4ff713 |
comparison
equal
deleted
inserted
replaced
409:15698dc0cba3 | 410:7608e34098b0 |
---|---|
4 Library: dyncallback | 4 Library: dyncallback |
5 File: dyncallback/dyncall_alloc_wx.h | 5 File: dyncallback/dyncall_alloc_wx.h |
6 Description: Allocate write/executable memory - Interface | 6 Description: Allocate write/executable memory - Interface |
7 License: | 7 License: |
8 | 8 |
9 Copyright (c) 2007-2018 Daniel Adler <dadler@uni-goettingen.de>, | 9 Copyright (c) 2007-2021 Daniel Adler <dadler@uni-goettingen.de>, |
10 Tassilo Philipp <tphilipp@potion-studios.com> | 10 Tassilo Philipp <tphilipp@potion-studios.com> |
11 | 11 |
12 Permission to use, copy, modify, and distribute this software for any | 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 | 13 purpose with or without fee is hereby granted, provided that the above |
14 copyright notice and this permission notice appear in all copies. | 14 copyright notice and this permission notice appear in all copies. |
33 | 33 |
34 #ifdef __cplusplus | 34 #ifdef __cplusplus |
35 extern "C" { | 35 extern "C" { |
36 #endif | 36 #endif |
37 | 37 |
38 // returns 0 on success | |
38 DCerror dcAllocWX (DCsize size, void** p); | 39 DCerror dcAllocWX (DCsize size, void** p); |
39 DCerror dcInitExecWX(void* p, DCsize size); | 40 DCerror dcInitExecWX(void* p, DCsize size); |
40 void dcFreeWX (void* p, DCsize size); | 41 void dcFreeWX (void* p, DCsize size); |
41 | 42 |
42 #ifdef __cplusplus | 43 #ifdef __cplusplus |