Software /
code /
prosody
Comparison
net/server_event.lua @ 2111:f59d9738437e
net.server_event: Define vdebug function for convenience
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Nov 2009 03:14:32 +0000 |
parent | 2110:99a7f291ddd8 |
child | 2112:8d70ca2d4f9e |
comparison
equal
deleted
inserted
replaced
2110:99a7f291ddd8 | 2111:f59d9738437e |
---|---|
50 local log = require ("util.logger").init("socket") | 50 local log = require ("util.logger").init("socket") |
51 | 51 |
52 local function debug(...) | 52 local function debug(...) |
53 return log("debug", ("%s "):rep(select('#', ...)), ...) | 53 return log("debug", ("%s "):rep(select('#', ...)), ...) |
54 end | 54 end |
55 local vdebug = debug; | |
55 | 56 |
56 local bitor = ( function( ) -- thx Rici Lake | 57 local bitor = ( function( ) -- thx Rici Lake |
57 local hasbit = function( x, p ) | 58 local hasbit = function( x, p ) |
58 return x % ( p + p ) >= p | 59 return x % ( p + p ) >= p |
59 end | 60 end |