36.2. Adding a built-in variable
Prev | Chapter 36. Extending CLISP | 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.45 | Last modified: 2008-05-14

Enter your search termsSubmit search form
Webclisp.cons.orgclisp.podval.orgwww.lisp.org

Prev | Up | Next
36.1. Adding a built-in function | Home | 36.3. Recompilation