diff options
Diffstat (limited to 'src/cc4group.h')
| -rw-r--r-- | src/cc4group.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cc4group.h b/src/cc4group.h index 780c50e..2309338 100644 --- a/src/cc4group.h +++ b/src/cc4group.h @@ -44,7 +44,7 @@ // ...it will be a great help in debugging mistakes that are made by the programmer // for lazy writers or just some testing, the nature of the API actually makes it possible to just chain a bunch of API calls with && and... // ...thanks to short-circuiting it will stop exactly at the error and the whole expression will return false and the error information can be retrieved as usual -// sadly, this trick didn't seem to make it into any example, as they are written to output additional, more user-friendly, information together with the error message +// this can be seen in the cppc4group_memorymanagement example (and works the same for cc4group) // - finally (and i still forgot some other general aspect used for sure), because the return value of the functions is already used for the success-bool, ... // ...functions that should actually return some real data have one (or more) pointer-arguments where they store the returned information // - if you are such a patient reader and you made it here, you may now look at some of the examples (in the examples folder) @@ -146,7 +146,7 @@ typedef struct { void* (*start)(void* const data, const size_t size, void* const arg); void (*end)(void* const data, void* const arg); void* arg; -} const CC4Group_MemoryManagement_t; +} CC4Group_MemoryManagement_t; typedef CC4Group_MemoryManagement_t* CC4Group_MemoryManagement; |
