by gerbens » Mon Jun 20, 2011 3:41 am
Hey, I'm porting/developing an linux game of mine to android. In this game I used coroutines to easily code the monsters. I've implemented the coroutine structure by stack switching, using ucontext.h. I thought that this would easily port to android (android being linux at the core). However ucontext.h is missing in the ndk, but also in the android git. At least the arm branch (I found it in the sh branch). Anybody having an idea how to implement stack switching on the arm. Either by ripping the ucontext.h from the linux implementation, or doing it another way. Thanks anyway!