2010-08-08 10:06:34 +02:00
|
|
|
#ifndef H_LUA_CONSOLE
|
|
|
|
#define H_LUA_CONSOLE
|
2016-11-25 20:15:11 +01:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct lua_State;
|
|
|
|
|
2011-03-07 08:02:35 +01:00
|
|
|
extern int lua_console(struct lua_State *L);
|
|
|
|
extern int lua_do(struct lua_State *L);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2018-02-25 16:36:22 +01:00
|
|
|
typedef int (*readline_fun) (struct lua_State *, char *, size_t, const char *);
|
|
|
|
extern void set_readline(readline_fun foo);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|