Skip to content

Instantly share code, notes, and snippets.

View nswutong's full-sized avatar

nswutong nswutong

  • Fuzhou, Fujian, China
View GitHub Profile
void coroutine_executor_ex() {
std::cout<<__FUNCTION__<<std::endl;
coroutine_ref _coro_value = this;
switch (_coro_value)
{
case -1:
{
if (_coro_value)
{
goto terminate_coroutine;
#define begin() \
static unsigned int state_ = 0;\
switch (state_) \
case 0:
#define _yield_impl(x_, z_) \
do { \
state_ = z_; \
##x_; \
goto exit__;\
mcs -target:library -out:MyAssembly.dll -r:/Applications/Unity/Unity.app/Contents/Frameworks/UnityEngine.dll MyAssembly.cs