Change the way the lua engine initialization functions are called

This commit is contained in:
2026-02-25 03:43:44 -05:00
parent 95cd378dc0
commit cc629227a5
7 changed files with 60 additions and 129 deletions

View File

@@ -127,6 +127,7 @@
class SourceDB : public eng::nevernew {
private:
lua_State *lua_state_;
static void register_lua_builtins();
public:
void init(lua_State *L);
@@ -188,10 +189,6 @@ public:
void set(const eng::string &fn, const eng::string &code, int sequence);
eng::string get(const eng::string &fn);
// Add builtins to the global function registry.
//
static void register_lua_builtins();
// Get function documentation.
//
// Returns false if it has no documentation for the specified function.