Skip to content

Commit 56464b9

Browse files
committed
added MRB_SET_INSTANCE_TT to PolarSSL::Entropy
1 parent 02221d7 commit 56464b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/polarssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "mruby.h"
2+
#include "mruby/class.h"
23
#include "mruby/data.h"
34
#include "polarssl/entropy.h"
45

@@ -55,6 +56,7 @@ void mrb_mruby_polarssl_gem_init(mrb_state *mrb) {
5556

5657
p = mrb_define_module(mrb, "PolarSSL");
5758
e = mrb_define_class_under(mrb, p, "Entropy", mrb->object_class);
59+
MRB_SET_INSTANCE_TT(e, MRB_TT_DATA);
5860
mrb_define_method(mrb, e, "initialize", mrb_entropy_init, MRB_ARGS_NONE());
5961
mrb_define_method(mrb, e, "gather", mrb_entropy_gather, MRB_ARGS_NONE());
6062
}

0 commit comments

Comments
 (0)