diff options
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; } } |