|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
The run's lifecycle and its typed failure. More...
#include <native_c_api.h>
Data Fields | |
| uint32_t | struct_size |
| sizeof(pf_native_state_v1). | |
| uint32_t | version |
| PF_NATIVE_API_VERSION. | |
| uint32_t | lifecycle |
| pf_native_lifecycle_t. | |
| uint32_t | failure_code |
| pf_native_failure_code_t; PF_NATIVE_FAILURE_CALLBACK_EXCEPTION for a callback that returned non-zero. | |
| uint32_t | failure_operation |
| pf_native_failure_operation_t. | |
| uint32_t | failure_discriminator |
The kernel's own word beside the code, as C++ NativeFailure::discriminator holds it: the request core's native_order::CoreFailure for a refused preparation (CONTRACT or SETTLEMENT_FAILURE; 7 is UnrepresentableReservation), its InstallError for a refused install (CONTRACT), the settlement's execution::Status for a failed inspection or commit (SETTLEMENT_FAILURE), a staged FX curve's NativeFxCurveError (INVALID_SPECIFICATION); 0 when the failure carries none, as every completed run does. | |
| uint64_t | failure_ordinal |
| The point the failure was latched at, 0 when absent. | |
| uint64_t | consumed_high_water |
| int64_t | decision_floor_ms |
| uint32_t | phase |
| pf_native_run_phase_t while Running. | |
| uint32_t | completion |
| pf_native_completion_t once Completed. | |
The run's lifecycle and its typed failure.
Definition at line 1797 of file native_c_api.h.
| uint32_t pf_native_state_v1::struct_size |
sizeof(pf_native_state_v1).
Definition at line 1798 of file native_c_api.h.
| uint32_t pf_native_state_v1::version |
PF_NATIVE_API_VERSION.
Definition at line 1799 of file native_c_api.h.
| uint32_t pf_native_state_v1::lifecycle |
Definition at line 1800 of file native_c_api.h.
| uint32_t pf_native_state_v1::failure_code |
pf_native_failure_code_t; PF_NATIVE_FAILURE_CALLBACK_EXCEPTION for a callback that returned non-zero.
Definition at line 1801 of file native_c_api.h.
| uint32_t pf_native_state_v1::failure_operation |
pf_native_failure_operation_t.
Definition at line 1804 of file native_c_api.h.
| uint32_t pf_native_state_v1::failure_discriminator |
The kernel's own word beside the code, as C++ NativeFailure::discriminator holds it: the request core's native_order::CoreFailure for a refused preparation (CONTRACT or SETTLEMENT_FAILURE; 7 is UnrepresentableReservation), its InstallError for a refused install (CONTRACT), the settlement's execution::Status for a failed inspection or commit (SETTLEMENT_FAILURE), a staged FX curve's NativeFxCurveError (INVALID_SPECIFICATION); 0 when the failure carries none, as every completed run does.
Definition at line 1805 of file native_c_api.h.
| uint64_t pf_native_state_v1::failure_ordinal |
The point the failure was latched at, 0 when absent.
Definition at line 1817 of file native_c_api.h.
| uint64_t pf_native_state_v1::consumed_high_water |
Definition at line 1818 of file native_c_api.h.
| int64_t pf_native_state_v1::decision_floor_ms |
Definition at line 1819 of file native_c_api.h.
| uint32_t pf_native_state_v1::phase |
pf_native_run_phase_t while Running.
Definition at line 1820 of file native_c_api.h.
| uint32_t pf_native_state_v1::completion |
pf_native_completion_t once Completed.
Definition at line 1821 of file native_c_api.h.