Expose a method to unmangle pointers in test builds
[ldk-c-bindings] / lightning-c-bindings / cbindgen.toml
index b9e49b3602890cbb8be374f8addaa7e12f2677fb..f49d50e7d7c148a9de3c346a71cc9b2ff47479c2 100644 (file)
@@ -1,6 +1,7 @@
 language = "C"
 include_guard = "LDK_C_BINDINGS_H"
 autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
+trailer = "#include \"ldk_ver.h\""
 include_version = true
 namespace = "LDK"
 
@@ -28,3 +29,6 @@ must_use = "MUST_USE_ENUM"
 
 [ptr]
 non_null_attribute = "NONNULL_PTR"
+
+[defines]
+"test_mod_pointers" = "LDK_DEBUG_BUILD"