klisp

an open source interpreter for the Kernel Programming Language.
git clone http://git.hanabi.in/repos/klisp.git
Log | Files | Refs | README

kcontinuation.h (585B)


      1 /*
      2 ** kcontinuation.h
      3 ** Kernel Continuations
      4 ** See Copyright Notice in klisp.h
      5 */
      6 
      7 #ifndef kcontinuation_h
      8 #define kcontinuation_h
      9 
     10 #include "kobject.h"
     11 #include "kstate.h"
     12 
     13 /* TODO: make some specialized constructors for 0, 1 and 2 parameters */
     14 TValue kmake_continuation(klisp_State *K, TValue parent, klisp_CFunction fn, 
     15                           int xcount, ...);
     16 
     17 /* Interceptions */
     18 void cont_app(klisp_State *K);
     19 TValue create_interception_list(klisp_State *K, TValue src_cont, 
     20                                 TValue dst_cont);
     21 void do_interception(klisp_State *K);
     22 
     23 #endif