]> git.decadent.org.uk Git - ion3.git/blob - ioncore/extlrx.c
a13038a79fe178588380ea719c2908b7c1187da6
[ion3.git] / ioncore / extlrx.c
1 /*
2  * ion/ioncore/extlrx.c
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12
13 #include "common.h"
14
15
16 /*{{{ libtu */
17
18
19 /*EXTL_DOC
20  * Issue a warning. How the message is displayed depends on the current
21  * warning handler.
22  */
23 EXTL_SAFE
24 EXTL_UNTRACED
25 EXTL_EXPORT
26 void ioncore_warn(const char *str)
27 {
28     warn("%s", str);
29 }
30
31
32 /*EXTL_DOC
33  * Similar to \fnref{ioncore.warn}, but also print Lua stack trace.
34  */
35 EXTL_SAFE
36 EXTL_EXPORT
37 void ioncore_warn_traced(const char *str)
38 {
39     warn("%s", str);
40 }
41
42
43 EXTL_SAFE
44 EXTL_EXPORT
45 const char *ioncore_gettext(const char *s)
46 {
47     if(s==NULL)
48         return NULL;
49     else
50         return TR(s);
51 }
52
53
54 /*}}}*/
55