File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -603,6 +603,9 @@ FizzyExecutionContext* fizzy_create_metered_execution_context(
603
603
604
604
void fizzy_free_execution_context (FizzyExecutionContext* ctx) FIZZY_NOEXCEPT;
605
605
606
+ int * fizzy_get_execution_context_depth (FizzyExecutionContext* ctx) FIZZY_NOEXCEPT;
607
+
608
+ int64_t * fizzy_get_execution_context_ticks (FizzyExecutionContext* ctx) FIZZY_NOEXCEPT;
606
609
607
610
// / Execute module function.
608
611
// /
Original file line number Diff line number Diff line change @@ -727,6 +727,16 @@ void fizzy_free_execution_context(FizzyExecutionContext* c_ctx) noexcept
727
727
delete unwrap (c_ctx);
728
728
}
729
729
730
+ int * fizzy_get_execution_context_depth (FizzyExecutionContext* c_ctx) noexcept
731
+ {
732
+ return &unwrap (c_ctx)->depth ;
733
+ }
734
+
735
+ int64_t * fizzy_get_execution_context_ticks (FizzyExecutionContext* c_ctx) noexcept
736
+ {
737
+ return &unwrap (c_ctx)->ticks ;
738
+ }
739
+
730
740
FizzyExecutionResult fizzy_execute (FizzyInstance* c_instance, uint32_t func_idx,
731
741
const FizzyValue* c_args, FizzyExecutionContext* c_ctx) noexcept
732
742
{
You can’t perform that action at this time.
0 commit comments