This commit is contained in:
2026-04-05 02:30:23 +08:00
parent 1dc5fa6d48
commit b7f8b92fe9
526 changed files with 28920 additions and 67070 deletions
-17
View File
@@ -1,17 +0,0 @@
#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
int main() {
sol::state lua;
int x = 0;
lua.set_function("beep", [&x] { ++x; });
lua.script("beep()");
sol_c_assert(x == 1);
sol::function beep = lua["beep"];
beep();
sol_c_assert(x == 2);
return 0;
}