/examples/annotations.winxed

http://github.com/NotFound/winxed · Unknown · 23 lines · 21 code · 2 blank · 0 comment · 0 complexity · 02882385124110f12c7ace2a6b13bae9 MD5 · raw file

  1. function aux()
  2. {
  3. var interp=getinterp();
  4. var cont;
  5. int i= 0;
  6. for (cont= interp['continuation']; cont; cont= cont.continuation()) {
  7. say(cont);
  8. var ann= interp['annotations', ++i];
  9. string file= ann['file'];
  10. int line= ann['line'];
  11. say("\t", file, ': ', line);
  12. }
  13. }
  14. function test()
  15. {
  16. aux();
  17. }
  18. function main()
  19. {
  20. test();
  21. }