ruby: MessagePack::VERSION constant

This commit is contained in:
frsyuki
2010-06-29 15:12:52 +09:00
parent 34a29cd0a5
commit 123ae024c6
6 changed files with 15 additions and 4 deletions

View File

@@ -43,7 +43,9 @@ static VALUE mMessagePack;
void Init_msgpack(void)
{
mMessagePack = rb_define_module("MessagePack");
rb_define_const(mMessagePack, "VERSION", rb_str_new2(MESSAGEPACK_VERSION));
Init_msgpack_unpack(mMessagePack);
Init_msgpack_pack(mMessagePack);
}