Skip to content

Commit

Permalink
Add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van der Heijden committed Sep 15, 2017
1 parent b194aad commit e4deccf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdbcl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "sdbcl.h"
#include "v8qpack.h"

#define VERSION "0.0.1"

namespace siridb
{

Expand Down Expand Up @@ -88,6 +90,9 @@ void SiriDBClient::Init(Local<Object> exports)

Local<Context> context = isolate->GetCurrentContext();

exports->DefineOwnProperty(context,
String::NewFromUtf8(isolate, "VERSION"),
String::NewFromUtf8(isolate, VERSION), v8::ReadOnly);
exports->DefineOwnProperty(context,
String::NewFromUtf8(isolate, "ERR_MSG"),
Number::New(isolate, -64), v8::ReadOnly);
Expand Down

0 comments on commit e4deccf

Please sign in to comment.