Skip to content

Commit

Permalink
lua_sjasm.cpp: use sj.get_modules() function name
Browse files Browse the repository at this point in the history
Really better than sj.get_module_namespace()
  • Loading branch information
lordheavy authored Dec 13, 2024
1 parent 59354d9 commit 3882524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sjasm/lua_sjasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static unsigned int lua_sj_get_word(unsigned int address) {
return result;
}

static const char* lua_sj_get_module(void) {
static const char* lua_sj_get_modules(void) {
return ModuleName;
}

Expand Down Expand Up @@ -410,7 +410,7 @@ static void lua_impl_init() {
.addFunction("get_byte", lua_sj_get_byte)
.addFunction("get_word", lua_sj_get_word)
.addFunction("get_device", GetDeviceName) // no error/warning, can be called directly
.addFunction("get_module_namespace", lua_sj_get_module)
.addFunction("get_modules", lua_sj_get_modules)
.addFunction("set_page", lua_sj_set_page)
.addFunction("set_slot", lua_sj_set_slot)
// MMU API will be not added, it is too dynamic, and _pc("MMU ...") works
Expand Down

0 comments on commit 3882524

Please sign in to comment.