[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/doc/C internals.xml
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/doc/C internals.xml |
Date: |
Wed, 28 Feb 2007 11:07:09 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/02/28 11:07:09
Modified files:
doc/C : internals.xml
Log message:
a note about ensureObjectType call to be add to builting actionscript
function handlers - this part really needs a big review, ann ?
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/internals.xml?cvsroot=gnash&r1=1.57&r2=1.58
Patches:
Index: internals.xml
===================================================================
RCS file: /sources/gnash/gnash/doc/C/internals.xml,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -b -r1.57 -r1.58
--- internals.xml 21 Feb 2007 09:38:12 -0000 1.57
+++ internals.xml 28 Feb 2007 11:07:09 -0000 1.58
@@ -394,7 +394,11 @@
through the <emphasis>obj</emphasis>.
<programlisting>
- foo_as_object *foo = env.top(0).to_object();
+ // ensureFoo(as_object*) should be defined as
+ // checking the type of given pointer being
+ // a foo_as_object, throwing an ActionException
+ // if this is not the case.
+ foo_as_object *foo = ensureFoo(fn.this_ptr);
bool result = foo->obj.GetBar();
</programlisting>