36.2. Adding a built-in variable
Prev Chapter 36. Extending CLISP Core Next

36.2. Adding a built-in variable

If you must be able to access the Lisp variable in the C code, follow these steps:

  • declare the variable name in constsym.d in the appropriate package (probably "CUSTOM", if there is no specific package);
  • add a define_variable() call in function init_symbol_values() in file spvw.d
  • export your variable name from the appropriate package in file init.lisp

These notes document CLISP version 2.49Last modified: 2010年07月07日




36.1. Adding a built-in function Home 36.3. Recompilation

AltStyle によって変換されたページ (->オリジナル) /