⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (394 Bytes)
Bug #17788
» testgem.cc
memel (Maia Engeli)
, 04/08/2021 11:02 PM
#include
<stdio.h>
#include
<ruby.h>
#include
<iostream>
VALUE
says
(
VALUE
_self
,
VALUE
str
)
{
Check_Type
(
str
,
T_STRING
);
puts
(
StringValueCStr
(
str
));
return
Qnil
;
}
void
Init_testgem
()
{
VALUE
mod
=
rb_define_module
(
"Simon"
);
const
int
num_args
=
1
;
std
::
cout
<<
"*** testgem initialized ***"
<<
std
::
endl
;
rb_define_module_function
(
mod
,
"says"
,
says
,
num_args
);
}
« Previous
1
2
3
Next »
(1-1/3)
Loading...