Skip to content
Browse files

Define rb_ary_size(), as I seem to have imagined it.

git-svn-id: svn+ssh://neo/SVN/MVI/CodeLibrary/ruby-mozjs/trunk@995 5d1ca2fa-b640-321b-a546-b60e1d359bbd
  • Loading branch information...
1 parent 072eedb commit 4527b8ade3fb46e972cd078345cee807f71c05ef @matthewd matthewd committed Feb 27, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 spidermonkey.c
View
2 spidermonkey.c
@@ -1109,6 +1109,8 @@ rbsm_ruby_to_jsdate( JSContext* cx, VALUE msec ){
return JSVAL_TO_OBJECT( dateval );
}
+inline static long rb_ary_size(VALUE ary) { return RARRAY(ary)->len; }
+
// rubyobj obj を javascript で使えるようにラップする
// To access a Ruby object from JavaScript, we wrap it.
static JSObject*

0 comments on commit 4527b8a

Please sign in to comment.
Something went wrong with that request. Please try again.