klisp

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

klibrary.h (409B)


      1 /*
      2 ** klibrary.h
      3 ** Kernel Libraries
      4 ** See Copyright Notice in klisp.h
      5 */
      6 
      7 #ifndef klibrary_h
      8 #define klibrary_h
      9 
     10 #include "kobject.h"
     11 #include "kstate.h"
     12 
     13 /* GC: Assumes env & ext_list are roooted */
     14 /* ext_list should be immutable */
     15 TValue kmake_library(klisp_State *K, TValue env, TValue exp_list);
     16 
     17 #define klibrary_env(p_) (tv2lib(p_)->env)
     18 #define klibrary_exp_list(p_) (tv2lib(p_)->exp_list)
     19 
     20 #endif