Skip to content

Commit

Permalink
Rather than get the Z80 class, define it.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcode committed Jan 2, 2024
1 parent 6c623b1 commit 6d7ac47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/z80/z80.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static VALUE Z80__alloc(VALUE klass)

void Init_z80(void)
{
VALUE module, klass = rb_const_get(rb_cObject, rb_intern("Z80"));
VALUE module, klass = rb_define_class("Z80", rb_cObject);

rb_define_alloc_func(klass, Z80__alloc);

Expand Down

0 comments on commit 6d7ac47

Please sign in to comment.