Multi-file BPF C builds (#2393)

This commit is contained in:
Jak May
2019-01-11 15:33:21 -08:00
committed by GitHub
parent 79b334b7f1
commit 23c43ed21b
13 changed files with 129 additions and 38 deletions

View File

@@ -0,0 +1,17 @@
#include <solana_sdk.h>
struct foo {const uint8_t *input;};
void foo(const uint8_t *input, struct foo foo) ;
extern bool entrypoint(const uint8_t *input) {
struct foo f;
f.input = input;
foo(input, f);
return true;
}
void foo(const uint8_t *input, struct foo foo) {
sol_log_64(0, 0, 0, (uint64_t)input, (uint64_t)foo.input);
sol_assert(input == foo.input);
}