Skip to content

Commit

Permalink
Merge pull request #41 from ProphesorIks/main
Browse files Browse the repository at this point in the history
Add define guard to internal ffi structs
  • Loading branch information
Lipt0nas authored Jul 17, 2024
2 parents 8b30731 + 582c918 commit 376e8f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindgen/src/bindings/cpp/templates/scaffolding.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
extern "C" {
#endif

#ifndef UNIFFI_CPP_INTERNALSTRUCTS
#define UNIFFI_CPP_INTERNALSTRUCTS
struct ForeignBytes {
int32_t len;
uint8_t *data;
Expand All @@ -22,6 +24,8 @@ struct RustCallStatus {
RustBuffer error_buf;
};

#endif

typedef int ForeignCallback(uint64_t handle, uint32_t method, uint8_t *args_data, int32_t args_len, RustBuffer *buf_ptr);

{% for func in ci.iter_ffi_function_definitions() %}
Expand Down

0 comments on commit 376e8f4

Please sign in to comment.