mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add snax.printf
This commit is contained in:
@@ -162,4 +162,8 @@ function snax.hotfix(obj, source, ...)
|
|||||||
return test_result(skynet_call(obj.handle, "snax", t.system.hotfix, source, ...))
|
return test_result(skynet_call(obj.handle, "snax", t.system.hotfix, source, ...))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function snax.printf(fmt, ...)
|
||||||
|
skynet.error(string.format(fmt, ...))
|
||||||
|
end
|
||||||
|
|
||||||
return snax
|
return snax
|
||||||
|
|||||||
Reference in New Issue
Block a user