Skip to content

Instantly share code, notes, and snippets.

@powerc9000
Created June 10, 2020 23:40
Show Gist options
  • Save powerc9000/0762a1afe3dd195b291125e1ca551458 to your computer and use it in GitHub Desktop.
Save powerc9000/0762a1afe3dd195b291125e1ca551458 to your computer and use it in GitHub Desktop.
CoRoutineThing :: struct {
func: proc(context: ^CoRoutineThing),
other: int,
data: int,
whatever: int
}
resumable_proc :: proc(routine_context: ^CoRoutineThing) {
}
main() {
routine_context : CoRoutineThing = {func= resumable_proc, other=0, data=0, whatever=0};
routine_context->func();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment