Many bug fixes to Ruby module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
843485d7fa
commit
48bc25b91e
5 changed files with 214 additions and 103 deletions
|
|
@ -1,7 +1,6 @@
|
|||
/* ruby.swg */
|
||||
#include "ruby.h"
|
||||
|
||||
#define UINT2NUM(v) rb_uint2inum(v)
|
||||
#define NUM2USHRT(n) NUM2UINT(n)
|
||||
#define NUM2SHRT(n) (\
|
||||
(SHRT_MIN <= NUM2INT(n) && NUM2INT(n) <= SHRT_MAX)\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue