⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Backport200
All Projects
Ruby
»
Backport200
Overview
Activity
Issues
Like
Download (257 Bytes)
Backport #7982
» t.c
test extension to segfault -
erik.s.chang (Erik Chang)
, 02/28/2013 09:50 AM
#include
<ruby.h>
static
VALUE
blowup
(
VALUE
self
,
VALUE
val
)
{
LONG_LONG
tmp
=
NUM2LL
(
val
);
const
char
*
s
=
"HI"
;
rb_raise
(
rb_eRangeError
,
"%s: %lli"
,
s
,
tmp
);
return
self
;
}
void
Init_t
(
void
)
{
rb_define_method
(
rb_cString
,
"blowup"
,
blowup
,
1
);
}
« Previous
1
2
Next »
(1-1/2)
Loading...