Mercurial > hg > CbC > old > examples
view first.c @ 8:ae12f717a62e draft default tip
fix first example
author | one |
---|---|
date | Wed, 07 Jun 2017 14:57:55 +0900 |
parents | e59ebf6fe2b0 |
children |
line wrap: on
line source
#include <stdio.h> __code code2(__code (*exit0)(int,void*), void *env) { printf("aho\n"); goto exit0(0,env); } __code code1(__code exit0(int,void*), void *env) { printf("hello\n"); goto code2(exit0, env); } int aho() { goto code1(__return,__environment); return 0; } int main() { aho(); printf("finish\n"); return 0; }