Artifact badb31134b5e2ab36d92c1062754b69c5d2239a3270dae4c36133cf5519a772e:
- File src/wrapper.c — part of check-in [37128bc371] at 2022-01-05 23:58:56 on branch trunk — Write basic implementation: loop and timers. - Properly (as possible) handle callback errors with deferred propagation. - Map/bind cdata handles to table handles. (user: imagic size: 349)
// https://github.com/ImagicTheCat/ljuv // MIT license (see LICENSE or src/ljuv.lua) #include <stdlib.h> #include <lua.h> #include <lauxlib.h> #include <uv.h> typedef struct ljuv_wrapper{ int non_empty; } ljuv_wrapper; static ljuv_wrapper wrapper; int luaopen_ljuv_wrapper_c(lua_State *L) { lua_pushlightuserdata(L, &wrapper); return 1; }