Created
June 10, 2020 23:40
-
-
Save powerc9000/0762a1afe3dd195b291125e1ca551458 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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