|
|
Go to the documentation of this file.
25#ifndef FAUDES_MUTE_LUA
68 std::ostringstream line;
71 lua_getglobal(L, "tostring");
77 s = lua_tostring(L, -1);
79 return luaL_error(L, LUA_QL( "tostring") " must return a string to " LUA_QL( "print"));
91 lua_pushstring(L, "break on application request");
103 lua_setglobal(L, "print");
108 if(ar->event != LUA_HOOKLINE) return;
117 lua_pushstring(L, "break on application request");
124 lua_sethook(L, & faudes_hook, LUA_MASKLINE | LUA_MASKCOUNT, 10);
159 std::string flxfile= std::string(arg0)+ ".flx";
171 std::string word(text,end-start);
173 if(mlist.size()==0) return NULL;
174 char** res = ( char**) malloc( sizeof( char *) * (mlist.size() + 1));
175 if(!res) return ( char**) NULL;
176 std::list< std::string >::iterator lit;
178 for(lit=mlist.begin(); lit!=mlist.end(); lit++)
179 *(dst++)=strdup(lit->c_str());
static ConsoleOut * G(void)
virtual void Write(const std::string &message, long int cntnow=0, long int cntdone=0, int verb=1)
static void Register(const std::string &rFilename)
void Install(const std::string &rFilename)
static void Initialize(lua_State *pLL)
std::list< std::string > Complete(const std::string &word)
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)
int faudes_print(lua_State *L)
libFAUDES 2.34d
--- 2026.03.11
--- c++ api documentaion by doxygen
|