https://github.com/shenlebantongying/embed_racket
https://github.com/shenlebantongying/embed_racket
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shenlebantongying/embed_racket
- Owner: shenlebantongying
- Created: 2023-09-14T12:47:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-14T22:38:38.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T04:14:48.340Z (5 months ago)
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Template to embed Racket into a C++ program.
# Build
## prepare racket
`make base` for minimum racket, but `raco ctool` is required, so we have to use `make` for complete racket distribution which inlcudes a lot of unnecessary things.
```shell
cd ./racket
make
```## Include racket module `#lang racket/base`
```shell
./racket/racket/bin/raco ctool --c-mods base.c ++lib racket/base
```