PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
Version query

Runtime version metadata. More...

Data Structures

struct  pf_version_t
 Runtime version descriptor returned by pf_version_get. More...
 

Functions

pf_version_t pf_version_get (void)
 
int pf_abi_version (void)
 
const char * pf_version_string (void)
 Full version descriptor, the PINEFORGE_VERSION_FULL of the generated pineforge/version.h.
 

Detailed Description

Runtime version metadata.

Function Documentation

◆ pf_version_get()

pf_version_t pf_version_get ( void )
Returns
Linked runtime version.

References PF_API.

◆ pf_abi_version()

int pf_abi_version ( void )

◆ pf_version_string()

const char * pf_version_string ( void )

Full version descriptor, the PINEFORGE_VERSION_FULL of the generated pineforge/version.h.

Returns "MAJOR.MINOR.PATCH[-rc.N][-N-gSHA[-dirty]]" for a tagged git checkout, or exactly the VERSION file ("MAJOR.MINOR.PATCH", or "MAJOR.MINOR.PATCH-rc.N" for a release candidate) for a tarball build or one configured with PINEFORGE_VERSION_SOURCE=FILE. pf_version_get carries only the numeric MAJOR.MINOR.PATCH. The pointer is to a static string with program lifetime; do not free.

References PF_API.