Releases: stifskere/bfptr
Run context
With this release, the run strategy is centralized.
- Added
bfptr_contextwhich is a run context you can feed tobrainfuck_on_ctx - Functions return a union which is
bfptr_exceptionwhich has its own code and reason - The
brainfuckfunction simply acts as default now. - The library is tested!
Static library fix
This release comes with a fix, where I realize macros do not matter in a static library as they are processed in compile time, and not in runtime, so forget the last release and install this one which comes with a new function to set the prefix for inputs.
The function is brainfuck_input_prefix which takes a char * and that will be stored to use as prefix within the , instruction in Brainfuck code.
Improve macros
This release fixes the macro description and adds an input prefix, now all the macros are prefixed with BFPTR.
BFPTR_EXCEPTION: This macro is meant for internal use, it prints an error and exits with-1.BFPTR_INPUT_PREFIX: This macro is meant for you to be set if you want the,Brainfuck instruction to print something before asking for a character.
First release
This release includes the files to be linked in your project if you want to include this library.
Read the installation guide on this repository, readme.md if you don't know how to install a c static library.
Please, don't use this in production.