Skip to content
Authors

File prod_janet.h

FileList > prod_janet > src > prod_janet.h

Go to the source code of this file

Defines the functionality of a Janet production, allowing for injection of arbitrary Janet code. More...

  • #include <stddef.h>

Classes

Type Name
struct prod_janet_config_t
Configuration type for a Janet production.

Public Functions

Type Name
const char * prod_janet_resolve (const void * config)
The resolve function for the Janet production type.
const char * prod_janet_terminate (const void * config)
The resolve function for the Janet production type.

Macros

Type Name
define PROD_JANET_NAME ("janet")
The type identifier for the janet production type.

Detailed Description

Author:

Joe Starr

Public Functions Documentation

function prod_janet_resolve

The resolve function for the Janet production type.

const char * prod_janet_resolve (
    const void * config
) 

Starts a Janet VM and executes the configured resolution script.

Parameters:

  • config A configuration of a production.

Returns:

A pointer to the output of the resolution.


function prod_janet_terminate

The resolve function for the Janet production type.

const char * prod_janet_terminate (
    const void * config
) 

Starts a Janet VM and executes the configured terminal script.

Parameters:

  • config A configuration of a production.

Returns:

A pointer to the output of the resolution.


Macro Definition Documentation

define PROD_JANET_NAME

The type identifier for the janet production type.

#define PROD_JANET_NAME `("janet")`



The documentation for this class was generated from the following file source/prod_janet/src/prod_janet.h