mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
ADDED THREAD ! Minor changes on other libs.
To communicate with a thread, use sockets on localhost, this should work. Or use the return code, or the "last error", but that's crappy. For the return code, just `return <number>`; only works with integers.
This commit is contained in:
parent
ca22cf1558
commit
499bfa99a3
6 changed files with 196 additions and 14 deletions
|
|
@ -114,6 +114,13 @@ The `ctr.mic` module.
|
|||
*/
|
||||
void load_mic_lib(lua_State *L);
|
||||
|
||||
/***
|
||||
The `ctr.thread` module.
|
||||
@table thread
|
||||
@see ctr.thread
|
||||
*/
|
||||
void load_thread_lib(lua_State *L);
|
||||
|
||||
/***
|
||||
Return whether or not the program should continue.
|
||||
@function run
|
||||
|
|
@ -171,6 +178,7 @@ struct { char *name; void (*load)(lua_State *L); void (*unload)(lua_State *L); }
|
|||
{ "audio", load_audio_lib, unload_audio_lib },
|
||||
{ "apt", load_apt_lib, NULL },
|
||||
{ "mic", load_mic_lib, NULL },
|
||||
{ "thread", load_thread_lib, NULL },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue