немножко раскидал функции по отдельным файлам && add helloWorld example

This commit is contained in:
2025-04-05 20:29:18 +05:00
parent 5dc9f2ca31
commit 96eb2c55d3
13 changed files with 410 additions and 267 deletions

View File

@@ -8,7 +8,7 @@
static int syscalls_gcARPEntry(lua_State* L)
{
free(lua_touserdata(L, 1));
free(luaL_checkudata(L, 1, syscalls_ARPEntry_metatable_name));
return 0;
}
@@ -90,8 +90,8 @@ static int syscalls_eqAPREntry(lua_State* L)
lua_pushboolean(
L,
syscalls_cmpAPREntry(
(struct ARP_entry*)lua_touserdata(L, 1),
(struct ARP_entry*)lua_touserdata(L, 2)
luaL_checkudata(L, 1, syscalls_ARPEntry_metatable_name),
luaL_checkudata(L, 2, syscalls_ARPEntry_metatable_name)
)
);