Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
fix(bool): Add _Bool c99 primitive
Browse files Browse the repository at this point in the history
fixes #19
  • Loading branch information
bengreenier committed Jan 5, 2022
1 parent c1067f8 commit 0cc951a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/clangffi/src/lib/tsgen/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class TSResolver implements ITypeNameResolver {
// "unclear spec": "ref.types.Object",
"char*": "string",
bool: "boolean",
_Bool: "boolean",
byte: "number",
char: "number",
"signed char": "number",
Expand Down Expand Up @@ -120,6 +121,7 @@ export class RefResolver implements ITypeNameResolver {
// "unclear spec": "ref.types.Object",
"char*": "ref.types.CString",
bool: "ref.types.bool",
_Bool: "ref.types.bool",
byte: "ref.types.byte",
char: "ref.types.char",
"signed char": "ref.types.char",
Expand Down
1 change: 1 addition & 0 deletions packages/clangffi/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export interface INativeLookupTable {
// "unclear spec": string,
"char*": string;
bool: string;
_Bool: string;
byte: string;
char: string;
"signed char": string;
Expand Down

0 comments on commit 0cc951a

Please sign in to comment.