diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-17 02:41:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-17 02:41:39 +0000 |
commit | 3d69324be300fce437536f7b7ac5f3d5c8c54d7d (patch) | |
tree | b74abf07f8a3cfbc7c1c6db8485bb4030ec1648a /include | |
parent | 3784395b8d344800af44cd89ca2353093d358ac1 (diff) | |
download | ruby-3d69324be300fce437536f7b7ac5f3d5c8c54d7d.tar.gz |
configure.in: FUNC_MINIMIZED
* configure.in (RUBY_FUNC_ATTRIBUTE): escape double quotes in
attribute.
* configure.in (FUNC_MINIMIZED): attribute to minimize function
body.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/defines.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 5d61bf8dd5..b84e4f5ad2 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -245,9 +245,12 @@ void rb_ia64_flushrs(void); #define RUBY_PLATFORM "unknown-unknown" #endif +#ifndef FUNC_MINIMIZED +#define FUNC_MINIMIZED(x) x +#endif #ifndef RUBY_ALIAS_FUNCTION_TYPE #define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) \ - type prot {return name args;} + FUNC_MINIMIZED(type prot) {return name args;} #endif #ifndef RUBY_ALIAS_FUNCTION_VOID #define RUBY_ALIAS_FUNCTION_VOID(prot, name, args) \ |