diff options
author | Determinant <[email protected]> | 2019-06-04 22:17:17 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-04 22:17:17 -0400 |
commit | dab48a1825aed9c810ce83ea8054fa435ecb41be (patch) | |
tree | e0a3f9587e3606350dedb291a22a70a9ba5b7e44 /src/type.cpp | |
parent | da42ddf96c78a73b4cf5f8854e98e009f4f174a4 (diff) |
...
Diffstat (limited to 'src/type.cpp')
-rw-r--r-- | src/type.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/type.cpp b/src/type.cpp index 1b02933..90d5055 100644 --- a/src/type.cpp +++ b/src/type.cpp @@ -1,23 +1,16 @@ +#include "salticidae/config.h" #ifdef SALTICIDAE_CBINDINGS #include "salticidae/type.h" extern "C" { -bytearray_t *bytearray_new() { - return new bytearray_t(); -} +bytearray_t *bytearray_new() { return new bytearray_t(); } -uint8_t *bytearray_data(bytearray_t *arr) { - return &(*arr)[0]; -} +uint8_t *bytearray_data(bytearray_t *arr) { return &(*arr)[0]; } -size_t bytearray_size(bytearray_t *arr) { - return arr->size(); -} +size_t bytearray_size(bytearray_t *arr) { return arr->size(); } -void bytearray_free(bytearray_t *arr) { - delete arr; -} +void bytearray_free(bytearray_t *arr) { delete arr; } } |