]> git.decadent.org.uk Git - ion3.git/blob - ioncore/extlrx.c
Update cfg_kludge_flash for Flash 10
[ion3.git] / ioncore / extlrx.c
1 /*
2  * ion/ioncore/extlrx.c
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2009. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9
10 #include "common.h"
11
12
13 /*{{{ libtu */
14
15
16 /*EXTL_DOC
17  * Issue a warning. How the message is displayed depends on the current
18  * warning handler.
19  */
20 EXTL_SAFE
21 EXTL_UNTRACED
22 EXTL_EXPORT
23 void ioncore_warn(const char *str)
24 {
25     warn("%s", str);
26 }
27
28
29 /*EXTL_DOC
30  * Similar to \fnref{ioncore.warn}, but also print Lua stack trace.
31  */
32 EXTL_SAFE
33 EXTL_EXPORT
34 void ioncore_warn_traced(const char *str)
35 {
36     warn("%s", str);
37 }
38
39
40 EXTL_SAFE
41 EXTL_EXPORT
42 const char *ioncore_gettext(const char *s)
43 {
44     if(s==NULL)
45         return NULL;
46     else
47         return TR(s);
48 }
49
50
51 /*}}}*/
52