ruby-c-extension
mkmf ignores files in sub-folders when it compiles the C extension
I\'d like to organize the C source code like this: + / ___ + ext ___ + native_extension ___ + lib[详细]
2023-04-11 11:42 分类:问答Extending ruby in C - how to specify default argument values to function?
I\'m trying to write a C extension to ruby that\'ll generate a class. I\'m looking on how to define some default arguments to a class. For example, if I have this class decleration in ruby:[详细]
2023-04-09 18:53 分类:问答How to retrieve structure members of a struct type variable in C, passed from ruby script?
I have implemented Ruby C extension(i.e. Invoking C function from ruby script) Following is the function implemented in c from file \"cFile.c\"[详细]
2023-04-05 11:03 分类:问答What is extension of ruby Exception class object in c?
HI i have following code in c which is invoked from a ruby script, static VALUE myMethod(VALUE self, VALUE exc)[详细]
2023-04-04 07:04 分类:问答Is there something wrong with how I'm referencing my instances in this C extension?
I\'m having some issues where when if I run this C extension outside of a Rails environment it works, but when I run inside Rails it gives me a stack dump.[详细]
2023-03-18 09:41 分类:问答Can objects made with c extensions instantiate and manage each other?
Right now I have a series of objects that are created using C extensions, so say they are Foo Bar Baz.[详细]
2023-03-17 05:46 分类:问答Why is my C extension not creating unique instances?
I created a C extension, the purpose of which is to determine if a series of cards will result in a straight or not.The example might be a little more complicated than necessary to show the issue, but[详细]
2023-03-15 06:49 分类:问答What am I supposed to return as class in Data_Wrap_Struct?
This is my stripped down code which isolates my problem: #include \"ruby.h\" #include \"stdlib.h\" typedef struct HandValues {[详细]
2023-03-15 04:54 分类:问答Why are the values I am pulling from my ruby array to my c extension wrong?
This method is just verifying that I\'m able to see the elements of a ruby array correctly. static VALUE[详细]
2023-03-14 15:26 分类:问答Ruby 1.8.7: Segfault on calling function inside C extension
I\'m building a simple C extension for a Ruby module, and I\'m running into trouble with a segfault when I call another C function inside my extension. The basic flow of execution goes like this:[详细]
2023-02-22 00:14 分类:问答