Skip to content

Instantly share code, notes, and snippets.

View NoelFB's full-sized avatar

Noel Berry NoelFB

View GitHub Profile
@RandyGaul
RandyGaul / routine.h
Last active November 6, 2022 15:33
Portable "coroutine"-like thing for implementing FSM and behavior-cycles
#ifndef ROUTINE_H
#define ROUTINE_H
#include <stdint.h>
// A portable "coroutine"-like thing for implementing FSM and behavior-cycles.
//
// Original implementation by Noel Berry.
// See: https://gist.github.com/NoelFB/7a5fa66fc29dd7ed1c11042c30f1b00e
//