2007-09-02 13:36:13 -07:00
|
|
|
#ifndef MOO_LUA_H
|
|
|
|
#define MOO_LUA_H
|
|
|
|
|
|
|
|
#include "lualib.h"
|
|
|
|
#include "lauxlib.h"
|
|
|
|
|
2007-09-03 12:53:38 -07:00
|
|
|
#define L_RETURN_BOOL(val) \
|
|
|
|
G_STMT_START { \
|
|
|
|
lua_pushboolean (L, val); \
|
|
|
|
return 1; \
|
|
|
|
} G_STMT_END
|
|
|
|
|
2008-01-29 07:42:26 -08:00
|
|
|
void lua_addpath (lua_State *L,
|
|
|
|
char **dirs,
|
|
|
|
unsigned n_dirs);
|
|
|
|
|
|
|
|
int luaopen_unicode (lua_State *L);
|
|
|
|
|
|
|
|
void lua_take_utf8string (lua_State *L,
|
|
|
|
char *s);
|
|
|
|
void lua_push_utf8string (lua_State *L,
|
|
|
|
const char *s,
|
|
|
|
int len);
|
|
|
|
const char *lua_check_utf8string (lua_State *L,
|
|
|
|
int numArg,
|
|
|
|
size_t *len);
|
2008-01-28 22:51:59 -08:00
|
|
|
|
2007-09-02 13:36:13 -07:00
|
|
|
#endif /* MOO_LUA_H */
|