added prototype macro

lib
Avril 4 years ago
parent 7e9f2083be
commit 44566cfa09
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -77,5 +77,9 @@ inline sm_yield sm_continue() { return (sm_yield)_sm_noop; }
#define SM_YIELD(v) do { state->current->pc = __LINE__; return (sm_yield)(v); case __LINE__:; } while(0)
#define SM_GENERATOR(name) sm_yield name(sm_state* state)
// ---
sm_state* sm_new_state();
void sm_free_state(sm_state* state);

Loading…
Cancel
Save