This file contains hidden or 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
| #define begin() \ | |
| static unsigned int state_ = 0;\ | |
| switch (state_) \ | |
| case 0: | |
| #define _yield_impl(x_, z_) \ | |
| do { \ | |
| state_ = z_; \ | |
| ##x_; \ | |
| goto exit__;\ |
This file contains hidden or 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
| 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; |
This file contains hidden or 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
| # GDC Vault videos can't be watched on mobile devices and this is a very sad thing indeed! | |
| # (Note: this has changed for GDC2013, which lets you watch raw MP4 streams. Kudos!) | |
| # This script is designed to circumvent this by downloading the lecture and slideshow | |
| # videos which can then be re-encoded into whatever format you wish. Obviously, you | |
| # won't be able to do this without access to the Vault. This is strictly for the | |
| # convenience of legitimate Vault users! | |
| # Note: this code is rather flimsy and was written as fast as possible for my own personal use. | |
| # The code only works for the most recent GDC Vault videos, since they all use the same player | |
| # format. If the XML format used to run the player is changed (as it has in the past), the code |
This file contains hidden or 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
| mcs -target:library -out:MyAssembly.dll -r:/Applications/Unity/Unity.app/Contents/Frameworks/UnityEngine.dll MyAssembly.cs |