nomsu/lib/timeout.nom
2017-10-04 19:37:41 -07:00

7 lines
203 B
Plaintext

require "lib/core.nom"
rule [cap at %num instructions] =:
lua code ".."
|print("capped at", \(%num))
|local f = function() error("timeout") end
|debug.sethook(f, "", \(%num))