Skip to content

Commit

Permalink
Fix bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed Aug 26, 2024
1 parent 76982be commit 5d52185
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion src/tools/cbindgen.cy
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ let macrosRootVisitor(cursor, parent, state):
var eval = clang.lib.clang_Cursor_Evaluate(cursor)
var kind = clang.lib.clang_EvalResult_getKind(eval)

var finalName = getApiName(name[4..].trim(.left, '_'))
-- var finalName = getApiName(name[4..].trim(.left, '_'))
var finalName = getApiName(name[4..])
switch kind
case clang.CXEval_UnExposed:
-- Can't eval to primitive. Check for struct intializer.
Expand Down
26 changes: 13 additions & 13 deletions src/tools/llvm.cy
Original file line number Diff line number Diff line change
Expand Up @@ -2762,22 +2762,22 @@ func load() dyn:
return lib

-- Macros
var .GCC_HAVE_DWARF2_CFI_ASM int = 1
var ._GCC_HAVE_DWARF2_CFI_ASM int = 1
var .INT64_MAX int = 9223372036854775807
var .INT64_MIN int = -9223372036854775808
var .UINT64_MAX int = -1
var .INT_LEAST64_MIN int = -9223372036854775808
var .INT_LEAST64_MAX int = 9223372036854775807
var .UINT_LEAST64_MAX int = -1
var .INT_LEAST32_MIN int = -2147483648
var .INT_LEAST32_MAX int = 2147483647
var .UINT_LEAST32_MAX int = 4294967295
var .INT_LEAST16_MIN int = -32768
var .INT_LEAST16_MAX int = 32767
var .UINT_LEAST16_MAX int = 65535
var .INT_LEAST8_MIN int = -128
var .INT_LEAST8_MAX int = 127
var .UINT_LEAST8_MAX int = 255
var ._INT_LEAST64_MIN int = -9223372036854775808
var ._INT_LEAST64_MAX int = 9223372036854775807
var ._UINT_LEAST64_MAX int = -1
var ._INT_LEAST32_MIN int = -2147483648
var ._INT_LEAST32_MAX int = 2147483647
var ._UINT_LEAST32_MAX int = 4294967295
var ._INT_LEAST16_MIN int = -32768
var ._INT_LEAST16_MAX int = 32767
var ._UINT_LEAST16_MAX int = 65535
var ._INT_LEAST8_MIN int = -128
var ._INT_LEAST8_MAX int = 127
var ._UINT_LEAST8_MAX int = 255
var .INT_LEAST64_MIN int = -9223372036854775808
var .INT_LEAST64_MAX int = 9223372036854775807
var .UINT_LEAST64_MAX int = -1
Expand Down

0 comments on commit 5d52185

Please sign in to comment.