mirror of
https://github.com/love2d/love-android.git
synced 2026-08-22 21:45:11 +02:00
Using latest love-android branch (e263d91d136d)
This commit is contained in:
@@ -89,7 +89,7 @@ static void parse_address(lua_State *l, const char *addr_str, ENetAddress *addre
|
||||
/**
|
||||
* Find the index of a given peer for which we only have the pointer.
|
||||
*/
|
||||
size_t find_peer_index (lua_State *l, ENetHost *enet_host, ENetPeer *peer) {
|
||||
static size_t find_peer_index(lua_State *l, ENetHost *enet_host, ENetPeer *peer) {
|
||||
size_t peer_index;
|
||||
for (peer_index = 0; peer_index < enet_host->peerCount; peer_index++) {
|
||||
if (peer == &(enet_host->peers[peer_index]))
|
||||
@@ -716,10 +716,6 @@ static const struct luaL_Reg enet_peer_funcs [] = {
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
static const struct luaL_Reg enet_event_funcs [] = {
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
int luaopen_enet(lua_State *l) {
|
||||
enet_initialize();
|
||||
atexit(enet_deinitialize);
|
||||
|
||||
Reference in New Issue
Block a user