1
0
forked from Mirror/wren

Wren 0.1.0!

There's nothing new in this "release", but now is as good a time as any
to start versioning. Going forward, I plan to do periodic releases and
update the changelog so users can see what's going on.
This commit is contained in:
Bob Nystrom
2016-05-21 10:53:05 -07:00
parent 0a060a9678
commit 6bcc64eb61
3 changed files with 18 additions and 1 deletions

3
CHANGELOG.md Normal file
View File

@ -0,0 +1,3 @@
## 0.1.0
First declared version. Everything is new!

View File

@ -257,7 +257,7 @@ int runRepl()
initVM();
printf("\\\\/\"-\n");
printf(" \\_/ wren v0.0.0\n");
printf(" \\_/ wren v%s\n", WREN_VERSION_STRING);
char line[MAX_LINE_LENGTH];

View File

@ -5,6 +5,20 @@
#include <stdlib.h>
#include <stdbool.h>
// The Wren semantic version number components.
#define WREN_VERSION_MAJOR 0
#define WREN_VERSION_MINOR 1
#define WREN_VERSION_PATCH 0
// A human-friendly string representation of the version.
#define WREN_VERSION_STRING "0.1.0"
// A monotonically increasing numeric representation of the version number. Use
// this if you want to do range checks over versions.
#define WREN_VERSION_NUMBER (WREN_VERSION_MAJOR * 1000000 + \
WREN_VERSION_MINOR * 1000 + \
WREN_VERSION_PATCH)
// A single virtual machine for executing Wren code.
//
// Wren has no global state, so all state stored by a running interpreter lives