Manpage formatting
[notion.git] / ioncore / extlrx.c
blob190100af77ecb2915684209557852d956220eeba
1 /*
2 * ion/ioncore/extlrx.c
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
10 #include "common.h"
13 /*{{{ libtu */
16 /*EXTL_DOC
17 * Issue a warning. How the message is displayed depends on the current
18 * warning handler.
20 EXTL_SAFE
21 EXTL_UNTRACED
22 EXTL_EXPORT
23 void ioncore_warn(const char *str)
25 warn("%s", str);
29 /*EXTL_DOC
30 * Similar to \fnref{ioncore.warn}, but also print Lua stack trace.
32 EXTL_SAFE
33 EXTL_EXPORT
34 void ioncore_warn_traced(const char *str)
36 warn("%s", str);
40 EXTL_SAFE
41 EXTL_EXPORT
42 const char *ioncore_gettext(const char *s)
44 if(s==NULL)
45 return NULL;
46 else
47 return TR(s);
51 /*}}}*/