aboutsummaryrefslogtreecommitdiff
path: root/bindgen/gen_odin.py
diff options
context:
space:
mode:
authorAlexander Arvidsson <2972103+AlexanderArvidsson@users.noreply.github.com>2025-01-05 09:55:57 +0100
committerAlexander Arvidsson <2972103+AlexanderArvidsson@users.noreply.github.com>2025-01-05 09:55:57 +0100
commit03e12ea7a6d61ea277ffab820a81a4fa573572e3 (patch)
tree6a47b7e9b5a28e602ad1861f50982e9420ccba34 /bindgen/gen_odin.py
parent3cb0ddb539e0bd8c0f4abf5621a32ebe5d3fa63d (diff)
bindgen: Remove unnecessary 'comment_multiline'
Diffstat (limited to 'bindgen/gen_odin.py')
-rw-r--r--bindgen/gen_odin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bindgen/gen_odin.py b/bindgen/gen_odin.py
index f66dcebb..6e2a5e32 100644
--- a/bindgen/gen_odin.py
+++ b/bindgen/gen_odin.py
@@ -428,7 +428,7 @@ def gen_c_imports(inp, c_prefix, prefix):
res_type = funcdecl_result_c(decl, prefix)
res_str = '' if res_type == '' else f'-> {res_type}'
if decl.get('comment'):
- if decl.get('comment_multiline'):
+ if '\n' in decl["comment"]:
l(" /*")
l(" " + " ".join(decl['comment'].splitlines(True)))
l(" */")
@@ -453,7 +453,7 @@ def gen_struct(decl, prefix):
c_struct_name = check_override(decl['name'])
struct_name = as_struct_or_enum_type(c_struct_name, prefix)
if decl.get('comment'):
- if decl.get('comment_multiline'):
+ if '\n' in decl["comment"]:
l("/*")
l(decl["comment"])
l("*/")
@@ -474,7 +474,7 @@ def gen_struct(decl, prefix):
def gen_enum(decl, prefix):
enum_name = check_override(decl['name'])
if decl.get('comment'):
- if decl.get('comment_multiline'):
+ if '\n' in decl["comment"]:
l("/*")
l(decl["comment"])
l("*/")