summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 08:28:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 08:28:28 +0000
commit07d65cd17090a42fae1b7e9b9870bb56c2b61161 (patch)
treedfdf0ac0093315a43c675f1b0f10fa63c61add33 /include
parent4e4c159b5949c60bee18beb98d35c7cd43c8d412 (diff)
downloadruby-07d65cd17090a42fae1b7e9b9870bb56c2b61161.tar.gz
ruby-07d65cd17090a42fae1b7e9b9870bb56c2b61161.tar.xz
ruby-07d65cd17090a42fae1b7e9b9870bb56c2b61161.zip
* include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/defines.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index 97806b7d0..1a9b37e2c 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -266,8 +266,8 @@ void rb_ia64_flushrs(void);
#define RUBY_PLATFORM "unknown-unknown"
#endif
-#ifndef RUBY_ALIAS_FUNCTION2
-#define RUBY_ALIAS_FUNCTION2(type, prot, name, args) \
+#ifndef RUBY_ALIAS_FUNCTION_TYPE
+#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) \
type prot {return name args;}
#endif
#ifndef RUBY_ALIAS_FUNCTION_VOID
@@ -276,7 +276,7 @@ void rb_ia64_flushrs(void);
#endif
#ifndef RUBY_ALIAS_FUNCTION
#define RUBY_ALIAS_FUNCTION(prot, name, args) \
- RUBY_ALIAS_FUNCTION2(VALUE, prot, name, args)
+ RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)
#endif
#if defined(__cplusplus)