52 std::ostringstream line;
55 lua_getglobal(L,
"tostring");
61 s = lua_tostring(L, -1);
63 return luaL_error(L, LUA_QL(
"tostring")
" must return a string to "
79 lua_pushstring(L,
"break on application request");
87 lua_pushstring(L,
"print");
89 lua_rawset(L, LUA_GLOBALSINDEX);
94 if(ar->event != LUA_HOOKLINE)
return;
103 lua_pushstring(L,
"break on application request");
110 lua_sethook(L, &
faudes_hook, LUA_MASKLINE | LUA_MASKCOUNT, 10);
145 std::string flxfile= std::string(arg0)+
".flx";
157 std::string word(text,end-start);
159 if(mlist.size()==0)
return NULL;
160 char** res = (
char**) malloc(
sizeof(
char *) * (mlist.size() + 1));
161 if(!res)
return (
char**) NULL;
162 std::list< std::string >::iterator lit;
164 for(lit=mlist.begin(); lit!=mlist.end(); lit++)
165 *(dst++)=strdup(lit->c_str());
static ConsoleOut * G(void)
Acess static instance.
virtual void Write(const std::string &message, long int cntnow=0, long int cntdone=0, int verb=0)
Write a std::string message (optional progress report and verbosity)
static void Register(const std::string &rFilename)
static void Initialize(lua_State *pLL)
Initialze.
void Install(const std::string &rFilename)
Install LuaExtension to Lua state.
std::list< std::string > Complete(const std::string &word)
Complete Lua identifier.
Includes all luabindings plug-in headers.
libFAUDES resides within the namespace faudes.
void LoopCallback(bool pBreak(void))
void faudes_hook_register(lua_State *L)
void faudes_hook(lua_State *L, lua_Debug *ar)
int faudes_loadext(lua_State *pL, const char *filename)
void faudes_initialize(lua_State *pL)
char ** faudes_complete(lua_State *pL, const char *text, int start, int end)
int faudes_loaddefext(lua_State *pL, const char *arg0)
void faudes_print_register(lua_State *L)
bool FileExists(const std::string &rFilename)
Test existence of file.
int faudes_print(lua_State *L)