The Ferite Developers Guide - Extending and Embedding The Ferite Engine | ||
---|---|---|
Prev | Chapter 6. Embedding Ferite | Next |
You cant cheat with builder just yet, but the basic idea is this: Write your modules to embed using builder and a .fec file, compile the c code into your program, make sure you register the native module [as in the last section], and then tell ferite to preload the .fec file rather than the native library. This will cause ferite to parse the file just like a normal library but link to you application than to an external function. The only issue with this is that your source code for each function will be in the .fec file.
This is also the same method by which you would compile modules into a program.