defines.h: tweaks of function alias macros
* include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): cast the result to suppress warnings. * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_VOID): minimize if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
17fab2d608
commit
df62ca9cae
@ -245,11 +245,11 @@ void rb_ia64_flushrs(void);
|
|||||||
#endif
|
#endif
|
||||||
#ifndef RUBY_ALIAS_FUNCTION_TYPE
|
#ifndef RUBY_ALIAS_FUNCTION_TYPE
|
||||||
#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) \
|
#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) \
|
||||||
FUNC_MINIMIZED(type prot) {return name args;}
|
FUNC_MINIMIZED(type prot) {return (type)name args;}
|
||||||
#endif
|
#endif
|
||||||
#ifndef RUBY_ALIAS_FUNCTION_VOID
|
#ifndef RUBY_ALIAS_FUNCTION_VOID
|
||||||
#define RUBY_ALIAS_FUNCTION_VOID(prot, name, args) \
|
#define RUBY_ALIAS_FUNCTION_VOID(prot, name, args) \
|
||||||
void prot {name args;}
|
FUNC_MINIMIZED(void prot) {name args;}
|
||||||
#endif
|
#endif
|
||||||
#ifndef RUBY_ALIAS_FUNCTION
|
#ifndef RUBY_ALIAS_FUNCTION
|
||||||
#define RUBY_ALIAS_FUNCTION(prot, name, args) \
|
#define RUBY_ALIAS_FUNCTION(prot, name, args) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user