Permalink
Browse files

Using rb_eval_string to load Ruby extensions

  • Loading branch information...
1 parent dac7189 commit a7172942bcc0adef09b509c865a3692f70d820d5 @wedesoft committed Jun 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/init.cc
View
@@ -36,7 +36,7 @@ extern "C" {
void Init_hornetseye_xorg(void)
{
// XInitThreads();
- rb_require( "hornetseye_frame" );
+ rb_eval_string( "require 'hornetseye_frame'" );
VALUE rbHornetseye = rb_define_module( "Hornetseye" );
X11Output::registerRubyClass( rbHornetseye );
XImagePainter::registerRubyClass( rbHornetseye, X11Output::cRubyClass );

0 comments on commit a717294

Please sign in to comment.