Skip to content
Discussion options

You must be logged in to vote

Do you have an example of some code that DStep fails to convert? Also how you run the DStep command.

C doesn't have a type called bool. It has a type called _Bool and the stdbool.h header file provides an alias called bool. This type was added in C99. The stdbool.h file is a compiler internal header file which is bundled with DStep. It should work out of the box. The only reason I can think of is that DStep defaults to an older standard of C, were this type is not available. You can use the -std=<standard> flag to specify the C standard, see [1] for more information. DStep uses Clang under the hood, any flags that can be passed to Clang can be passed to DStep.

[1] https://clang.llvm.org/d…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@amreus
Comment options

@jacob-carlborg
Comment options

@amreus
Comment options

@jacob-carlborg
Comment options

@amreus
Comment options

Answer selected by jacob-carlborg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants