Skip to content
JulGame Docs
GitHub

event (Macro)

Example

    event = JulGame.Macros.@event begin
        println("Test")
        println("Other)
    end

    if eventNeedsToBeCalled
        example_function(event) # this can be passed through to another function, where it can be executed later.
    end


    ...


    function example_function(event)
        event()
    end