3 Routines for handling Flash2 AVM2 ABC Actionscript
5 Extension module for the rfxswf library.
6 Part of the swftools package.
8 Copyright (c) 2008,2009 Matthias Kramm <kramm@quiss.org>
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
31 int as3_verbosity = 1;
33 void as3_error(const char*format, ...)
40 va_start(arglist, format);
41 vsnprintf(buf, sizeof(buf)-1, format, arglist);
43 fprintf(stderr, "%s:%d:%d: error: %s\n", current_filename, current_line, current_column, buf);
44 fprintf(stderr, "%s\n", current_filename_long);
48 void as3_warning(const char*format, ...)
55 va_start(arglist, format);
56 vsnprintf(buf, sizeof(buf)-1, format, arglist);
58 fprintf(stdout, "%s:%d:%d: warning: %s\n", current_filename, current_line, current_column, buf);
61 void as3_softwarning(const char*format, ...)
68 va_start(arglist, format);
69 vsnprintf(buf, sizeof(buf)-1, format, arglist);
71 fprintf(stderr, "%s:%d:%d: warning: %s\n", current_filename, current_line, current_column, buf);