Skip to content

Commit

Permalink
修复编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed Apr 25, 2024
1 parent ee759bd commit 16157e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
13 changes: 0 additions & 13 deletions core/quanta/src/quanta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,3 @@ void quanta_app::run() {
};
logger::get_logger()->stop();
}

bool quanta_app::step() {
auto quanta = m_lua.get<luakit::lua_table>("quanta");
if (quanta.get_function("run")) {
quanta.call([&](std::string_view err) {
LOG_FATAL(fmt::format("quanta run err: {} ", err));
});
check_input(m_lua);
return true;
}
logger::get_logger()->stop();
return false;
}
2 changes: 0 additions & 2 deletions core/quanta/src/quanta.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ class quanta_app final
~quanta_app();

void run();
bool step();
bool initzip(const char* zfile);
void setup(int argc, const char* argv[]);
void load(int argc, const char* argv[]);
void set_signal(uint32_t n, bool b = true);
void set_env(std::string key, std::string value, int over = 0);

luakit::lua_table init();
luakit::kit_state* state() { return &m_lua; };

lua_State* L() { return m_lua.L(); }

Expand Down

0 comments on commit 16157e8

Please sign in to comment.