Skip to content
Snippets Groups Projects
Commit fae2bbf6 authored by Sulverus's avatar Sulverus
Browse files

gh-706 logging from lua in 1.5 style

parent 3924acf6
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ local function say(level, fmt, ...)
ffi.C._say(level, file, line, nil, "%s", str)
end
return {
package.loaded.log = {
warn = function (fmt, ...)
say(ffi.C.S_WARN, fmt, ...)
end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment