Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ruby_conversions.hpp

Go to the documentation of this file.
00001 #ifndef Exc_Ruby__Ruby_Conversions__hpp_
00002 #define Exc_Ruby__Ruby_Conversions__hpp_
00003 
00008 #include <ruby.h>
00009 
00010 #undef TYPE
00011 
00012 namespace Exc_Ruby
00013 {
00014 
00018 char * CPP_STR2CSTR(VALUE str);
00019 
00021 long CPP_NUM2LONG(VALUE x);
00022 
00024 unsigned long CPP_NUM2ULONG(VALUE x);
00025 
00027 long CPP_NUM2INT(VALUE x);
00028 
00030 unsigned long CPP_NUM2UINT(VALUE x);
00031 
00033 double CPP_NUM2DBL(VALUE x);
00034 
00035 } // namespace Exc_Ruby
00036 
00038 #ifndef LONG2FIX
00039 #define LONG2FIX(i) INT2FIX(i)
00040 #endif
00041 
00043 #ifndef LONG2NUM
00044 #define LONG2NUM(v) INT2NUM(v)
00045 #endif
00046 
00048 #ifndef ULONG2NUM
00049 #define ULONG2NUM(v) UINT2NUM(v)
00050 #endif 
00051 
00052 #include "ruby_conversions.ipp"
00053 
00054 #endif // Exc_Ruby__Ruby_Conversions__hpp_
00055 

Generated on Sat Jan 1 12:02:19 2005 for Exceptional Ruby by doxygen 1.3.6