make swfdec_as_value_to_primitive() use SwfdecAsValue directly
[swfdec.git] / test / swfdec_test_global.c
blob1f64faaa67f92c366b8e821408cb16efa6013185
1 /* Swfdec
2 * Copyright (C) 2008 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
24 #include <swfdec/swfdec.h>
26 #include "swfdec_test_function.h"
27 #include "swfdec_test_initialize.h"
29 SWFDEC_TEST_FUNCTION ("print", swfdec_test_print)
30 void
31 swfdec_test_print (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
32 SwfdecAsValue *argv, SwfdecAsValue *retval)
34 const char *s;
36 SWFDEC_AS_CHECK (0, NULL, "s", &s);
38 g_print ("%s\n", s);