Skip to content

Commit

Permalink
Wren 0.1.0!
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
munificent committed May 21, 2016
1 parent 0a060a9 commit 6bcc64e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.1.0

First declared version. Everything is new!
2 changes: 1 addition & 1 deletion src/cli/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
14 changes: 14 additions & 0 deletions src/include/wren.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bcc64e

Please sign in to comment.