Skip to content

Commit

Permalink
Fixes nullable as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gupnik committed Jan 23, 2025
1 parent c4184be commit 7f7b4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen-v2/src/codegen/cpp/code_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ fn generate_return_type(func: &TWStaticFunction, converted_args: &Vec<String>) -

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,
Expand Down

0 comments on commit 7f7b4f7

Please sign in to comment.