blob: dc5212d5284aa86f9d76b0b50a255fb3a4ef2d87 (
plain)
1
2
3
4
5
6
7
8
|
require "lib/core.nom"
rule [cap at %num instructions] =:
lua code ".."
|print("capped at", \(%num))
|local f = function()
| nomsu:error("Execution quota exceeded. Your code took too long.")
|end
|debug.sethook(f, "", \(%num))
|