Skip to content

Compiler Version in .a3c Storyfiles #49

Answered by thoni56
tajmone asked this question in ARun Design
Discussion options

You must be logged in to vote

@thoni56, a few question about the ALAN compiler version stored in .a3c files (under header->version[]).

Compiler Version State

In main.c L247 we find:

...

What would the default case be used for? It seems that it will just return whatever character it contains. Is it actually ever used, or is it just a reasonable fallback for future uses?

Yes, just a reasonable fallback. Many modern C-compilers warns for switches that don't have cases for all possible values, so that is another reason.

When is dev used? I've compiled an adventure using ALAN 3.0beta8 build 2276, but the stored version in the .a3c file is just "3.0beta8", although it's a developer snapshot.

"dev" was actually an even…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tajmone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants