Gnash
0.8.10
|
A UserFunction is a callable function defined in ActionScript. More...
#include <UserFunction.h>
Public Member Functions | |
virtual boost::uint8_t | registers () const =0 |
Return the number of local registers needed. | |
Protected Member Functions | |
UserFunction (Global_as &gl) | |
virtual | ~UserFunction ()=0 |
This is an abstract base class! |
A UserFunction is a callable function defined in ActionScript.
Gnash has two types of UserFunction: 1. Function: functions parsed from a SWF 2. builtin_function: functions implemented in C++ as though they were These are used to implement the API functions that the proprietary player implements in a startup script.
gnash::UserFunction::UserFunction | ( | Global_as & | gl | ) | [inline, protected] |
gnash::UserFunction::~UserFunction | ( | ) | [inline, protected, pure virtual] |
This is an abstract base class!
virtual boost::uint8_t gnash::UserFunction::registers | ( | ) | const [pure virtual] |
Return the number of local registers needed.
Only Function2 functions require local registers; for all others the value should be 0.
Implemented in gnash::Function, gnash::Function2, and gnash::builtin_function.