improve function of ghost_register_table

This commit is contained in:
ValKmjolnir
2023-05-11 00:24:35 +08:00
parent 774ad60c42
commit 7cc9ef436e
8 changed files with 178 additions and 84 deletions

View File

@@ -88,13 +88,13 @@ var nas_noblock(var* args, usize size, gc* ngc) {
return nil;
}
mod_func func_tbl[]={
module_func_info func_tbl[]={
{"nas_getch",nas_getch},
{"nas_kbhit",nas_kbhit},
{"nas_noblock",nas_noblock},
{nullptr,nullptr}
};
extern "C" mod_func* get(ghost_register_table* table) {
extern "C" module_func_info* get(ghost_register_table* table) {
return func_tbl;
}