infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
utility.c File Reference

Implements internal debugging utilities. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Implements internal debugging utilities.

Copyright (c) 2025 Sanko Robinson

This source code is dual-licensed under the Artistic License 2.0 or the MIT License. You may choose to use this code under the terms of either license.

SPDX-License-Identifier: (Artistic-2.0 OR MIT)

The documentation blocks within this file are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

SPDX-License-Identifier: CC-BY-4.0

This file provides the implementation for debugging functions that are conditionally compiled only when the INFIX_DEBUG_ENABLED preprocessor macro is defined and set to a non-zero value.

In release builds, this entire translation unit is effectively empty, ensuring that debugging code has no impact on the final binary's size or performance. The corresponding function declarations in utility.h become empty inline stubs, which are optimized away by the compiler.