Skip to content

Instantly share code, notes, and snippets.

View oos_make_error_000
rock code:
handlerInstall: static func (irq: Int, handler: Func (Registers*)) {
irqRoutines[irq] = handler as Closure thunk
}
clang error:
src/devices/cpu/IRQ.ooc:58:5: error: used type 'lang_types__Closure' (aka
'struct _lang_types__Closure') where arithmetic or pointer type is
required
..._lang_array__Array_set(devices_cpu_IRQ__IRQ_class()->irqRoutines, irq, lang_types__Pointer, ((lang_types__Closure) (handler)).thunk)...
You can’t perform that action at this time.