Expose a method to unmangle pointers in test builds
[ldk-c-bindings] / lightning-c-bindings / cbindgen.toml
index bcbe2641dc4a39e161d877b98f14d22253c1a014..f49d50e7d7c148a9de3c346a71cc9b2ff47479c2 100644 (file)
@@ -1,7 +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>"
+trailer = "#include \"ldk_ver.h\""
 include_version = true
 namespace = "LDK"
 
@@ -29,3 +29,6 @@ must_use = "MUST_USE_ENUM"
 
 [ptr]
 non_null_attribute = "NONNULL_PTR"
+
+[defines]
+"test_mod_pointers" = "LDK_DEBUG_BUILD"