X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=genbindings.py;h=1ac132ad9e1b3d21b0b0a824ed2f4ea892155acd;hp=5fd2062817370ec9c15134c4a113ccae1a9829fc;hb=2c6019a5b2f36dda095d5487aa0111dc8366e17a;hpb=2a65456aa0b540060dcf3ca707a54dc98cc3f38a diff --git a/genbindings.py b/genbindings.py index 5fd20628..1ac132ad 100755 --- a/genbindings.py +++ b/genbindings.py @@ -703,6 +703,7 @@ with open(sys.argv[1]) as in_h, open(f"{sys.argv[2]}/bindings{consts.file_ext}", if check_sfx is not None: write_c("CHECK(" + check_sfx[0] + "owner" + check_sfx[1] + ");\n") write_c("\treturn " + accessor[0] + "owner" + accessor[1] + ";\n") + holds_ref = True else: fn_defn = ptr_fn_defn write_c("static inline " + fn_defn + "{\n")