src/luaevent.c

changeset 78
4782f315942f
parent 75
5a5f46aed0c1
child 82
01408cb4d74f
equal deleted inserted replaced
77:ad37f03df138 78:4782f315942f
1 /* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com> 1 /* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
2 * Licensed as LGPL - See doc/COPYING for details */ 2 * Licensed as LGPL - See doc/COPYING for details */
3 3
4 #include "luaevent.h"
5 #include "event_callback.h" 4 #include "event_callback.h"
6 #include "event_buffer.h" 5 #include "event_buffer.h"
7 #include "buffer_event.h" 6 #include "buffer_event.h"
8 7
9 #include <lua.h>
10 #include <lauxlib.h> 8 #include <lauxlib.h>
11 #include <assert.h> 9 #include <assert.h>
12 10
13 #define EVENT_BASE_MT "EVENT_BASE_MT" 11 #define EVENT_BASE_MT "EVENT_BASE_MT"
14
15 #ifdef _WIN32
16 #include <winsock2.h>
17 #endif
18 12
19 le_base* event_base_get(lua_State* L, int idx) { 13 le_base* event_base_get(lua_State* L, int idx) {
20 return (le_base*)luaL_checkudata(L, idx, EVENT_BASE_MT); 14 return (le_base*)luaL_checkudata(L, idx, EVENT_BASE_MT);
21 } 15 }
22 16

mercurial