1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
?Win32 Function lua_osname(L:Byte Ptr) 	lua_pushstring(L, "windows") 	Return 1 EndFunction ?Linux Function lua_osname(L:Byte Ptr) 	lua_pushstring(L, "linux") 	Return 1 EndFunction ?MacOS Function lua_osname(L:Byte Ptr) 	lua_pushstring(L, "macos") 	Return 1 EndFunction ? lua_getglobal(L, "os") lua_pushcfunction(L, lua_osname) lua_setfield(L, -2, "name")