Move new macros for Ruby to their dedicated namespace
This commit is contained in:
parent
00e291b319
commit
5542cc228a
3 changed files with 11 additions and 7 deletions
|
|
@ -114,14 +114,14 @@
|
|||
# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
|
||||
# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
|
||||
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
||||
# define VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
|
||||
# define INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
|
||||
# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
|
||||
# define SWIG_RUBY_INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
|
||||
#else
|
||||
# define PROTECTFUNC(f) (f)
|
||||
# define VALUEFUNC(f) (f)
|
||||
# define VOIDFUNC(f) (f)
|
||||
# define VOID_ANYARGS_FUNC(f) (f)
|
||||
# define INT_ANYARGS_FUNC(f) (f)
|
||||
# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) (f)
|
||||
# define SWIG_RUBY_INT_ANYARGS_FUNC(f) (f)
|
||||
#endif
|
||||
|
||||
/* Don't use for expressions have side effect */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue