MCPcopy Create free account
hub / github.com/argumentcomputer/ix / assert_linearity

Function assert_linearity

c/linear.h:223–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223static inline void assert_linearity(linear_object *linear) {
224 if (LEAN_UNLIKELY(linear->outdated)) {
225 lean_internal_panic("Non-linear usage of linear object");
226 }
227}
228
229static inline void free_linear_object(linear_object *linear) {
230 // Only finalize `object_ref` if `linear` is the latest linear object reference

Callers 1

validated_linearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected