nany
Public Attributes | List of all members
nyprogram_cf_t Struct Reference

#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
 

Detailed Description

Program Configuration

Member Data Documentation

§ allocator

nyallocator_t nyprogram_cf_t::allocator

Memory allocator

§ console

nyconsole_t nyprogram_cf_t::console

Console output

§ entrypoint

nyanystr_t nyprogram_cf_t::entrypoint

Entry point to compile (ex: "main")

§ io

nyio_cf_t nyprogram_cf_t::io

IO configuration

§ on_terminate

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

Note
This callback won't be called if on_execute failed

§ on_thread_destroy

void(* nyprogram_cf_t::on_thread_destroy) (nyprogram_t *, nythread_t *)

A thread has been destroyed.

Note
This callback won't be called if on_thread_create failed

The documentation for this struct was generated from the following file: