|
nany
|
#include <nany.h>
Public Attributes | |
| nyallocator_t | allocator |
| nyconsole_t | console |
| nybool_t(* | on_execute )(nyprogram_t *) |
| A new program has been started return nytrue to continue the execution, nyfalse to abort it. | |
| nybool_t(* | on_thread_create )(nyprogram_t *, nytctx_t *, nythread_t *parent, const char *name, uint32_t size) |
| A new thread is created return nytrue to continue the execution of the thread. nyfalse to abort. | |
| void(* | on_thread_destroy )(nyprogram_t *, nythread_t *) |
| A thread has been destroyed. More... | |
| void(* | on_terminate )(const nyprogram_t *, nybool_t error, int exitcode) |
| The program is terminated. More... | |
| nyio_cf_t | io |
| nyanystr_t | entrypoint |
Program Configuration
| nyallocator_t nyprogram_cf_t::allocator |
Memory allocator
| nyconsole_t nyprogram_cf_t::console |
Console output
| nyanystr_t nyprogram_cf_t::entrypoint |
Entry point to compile (ex: "main")
| nyio_cf_t nyprogram_cf_t::io |
IO configuration
| void(* nyprogram_cf_t::on_terminate) (const nyprogram_t *, nybool_t error, int exitcode) |
The program is terminated.
Error has been received during the execution of the code
on_execute failed | void(* nyprogram_cf_t::on_thread_destroy) (nyprogram_t *, nythread_t *) |
A thread has been destroyed.
on_thread_create failed
1.8.12