ffi/ffi-swig-generator — pull request #13 by phemmer (2013-10-18 03:12:11+00:00)
Title: Fix type casted constants

This fixes a bug when using type casted constantes.

Consider the following swig file:

%module Test
#define FOO 10000ULL

Without the fix, the following is generated:

FOO = 10000ULL

...which is invalid ruby code.

With the fix:

FOO = 10000

FFI is responsible for casting the variable to the appropriate type when a function is called.