From 7f7b4f7ccbafc771e92bab23b884a2e0ef360435 Mon Sep 17 00:00:00 2001 From: gupnik <17176722+gupnik@users.noreply.github.com> Date: Thu, 23 Jan 2025 16:30:23 +0530 Subject: [PATCH] Fixes nullable as well --- codegen-v2/src/codegen/cpp/code_gen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen-v2/src/codegen/cpp/code_gen.rs b/codegen-v2/src/codegen/cpp/code_gen.rs index 9a79f3a26c2..e341e9a2851 100644 --- a/codegen-v2/src/codegen/cpp/code_gen.rs +++ b/codegen-v2/src/codegen/cpp/code_gen.rs @@ -205,7 +205,7 @@ fn generate_return_type(func: &TWStaticFunction, converted_args: &Vec) - fn generate_conversion_code_with_var_name(ty: &str, name: &str) -> Result<(String, String)> { match ty { - "TWString *_Nonnull" => { + "TWString *_Nonnull" | "TWString *_Nullable" => { let mut conversion_code = String::new(); writeln!( &mut conversion_code,