2
3
espelhamento de https://github.com/sammy-ette/Hilbish sincronizado 2025-08-10 02:52:03 +00:00

Comparar commits

..

Nenhum commit em comum. "09d04a7850f25db730dbfe833eaf402538045ff2" e "b6aecb12f603ae89c660e52eb5cf733b2a3065d5" tem históricos completamente diferentes.

2 arquivos alterados com 2 adições e 10 exclusões

Ver arquivo

@ -13,16 +13,12 @@ function bait.catch(name, cb) end
function bait.catchOnce(name, cb) end
--- Returns a table with hooks on the event with `name`.
--- @param name string
--- @returns table
function bait.hooks(name) end
function bait.hooks() end
--- Removes the `catcher` for the event with `name`
--- For this to work, `catcher` has to be the same function used to catch
--- an event, like one saved to a variable.
--- @param name string
--- @param catcher function
function bait.release(name, catcher) end
function bait.release() end
--- Throws a hook with `name` with the provided `args`
--- @param name string

Ver arquivo

@ -286,8 +286,6 @@ func (b *Bait) bcatchOnce(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
// Removes the `catcher` for the event with `name`
// For this to work, `catcher` has to be the same function used to catch
// an event, like one saved to a variable.
// --- @param name string
// --- @param catcher function
func (b *Bait) brelease(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
name, catcher, err := util.HandleStrCallback(t, c)
if err != nil {
@ -301,8 +299,6 @@ func (b *Bait) brelease(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
// hooks(name) -> {cb, cb...}
// Returns a table with hooks on the event with `name`.
// --- @param name string
// --- @returns table
func (b *Bait) bhooks(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
if err := c.Check1Arg(); err != nil {
return nil, err