File: basic.lua

package info (click to toggle)
lua-event 0.4.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: ansic: 741; makefile: 40; sh: 1
file content (8 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
local luaevent = require("luaevent")

print("Version:", luaevent._NAME.." "..luaevent._VERSION)
print("libevent version:", luaevent.core.libevent_version())
print("")
base = luaevent.core.new()
print("Testing creating base object:", type(base) == "userdata" and "OK" or "FAIL")
print("libevent backend:", base:method())