Browse Source

gen_d.py: replace immutable with _immutable (reserved D keyword)

Andre Weissflog 4 months ago
parent
commit
ba397cdc31
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bindgen/gen_d.py

+ 1 - 0
bindgen/gen_d.py

@@ -57,6 +57,7 @@ c_callbacks = [
 # NOTE: syntax for function results: "func_name.RESULT"
 overrides = {
     'ref':                                  '_ref',
+    'immutable':                            '_immutable',
     'sgl_error':                            'sgl_get_error',   # 'error' is reserved in Dlang
     'sgl_deg':                              'sgl_as_degrees',
     'sgl_rad':                              'sgl_as_radians',