Go to the documentation of this file.
19 #ifndef GNASH_SWF_SCRIPTLIMITSTAG_H
20 #define GNASH_SWF_SCRIPTLIMITSTAG_H
45 log_debug(
"Setting script limits: recursion %s, timeout %s",
46 _recursionLimit, _timeoutLimit);
71 log_parse(
_(
" ScriptLimits tag: recursion: %d, timeout: %d"),
72 _recursionLimit, _timeoutLimit);
77 std::uint16_t _recursionLimit;
78 std::uint16_t _timeoutLimit;
85 #endif // GNASH_SWF_SCRIPTLIMITSTAG_H
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:44
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define LOG_ONCE(x)
Definition: log.h:49
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: ScriptLimitsTag.h:51
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ SCRIPTLIMITS
Definition: SWF.h:95
void setScriptLimits(std::uint16_t recursion, std::uint16_t timeout)
Definition: movie_root.cpp:2285
@ m
Definition: GnashKey.h:159
@ s
Definition: GnashKey.h:165
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:84
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:65
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
void log_parse(StringType msg, Args... args)
Definition: log.h:313
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
virtual ~ScriptLimitsTag()
Definition: ScriptLimitsTag.h:40
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
virtual void executeState(MovieClip *m, DisplayList &) const
Execute "state" or "DisplayList" tags.
Definition: ScriptLimitsTag.h:42
SWF stream wrapper class.
Definition: SWFStream.h:59
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
Sets the desired limits for recursion and timeout for AS scripts.
Definition: ScriptLimitsTag.h:37
@ SWF
Definition: GnashKey.h:331