infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
Ch07_SemanticAliases.c File Reference
#include <infix/infix.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for Ch07_SemanticAliases.c:

Functions

bool introspect_alias (const char *signature, infix_registry_t *registry, const char *expected_name, infix_type_category expected_category, size_t expected_size)
 A helper function to introspect a type defined by a signature string.
 
int main ()
 

Function Documentation

◆ introspect_alias()

bool introspect_alias ( const char *  signature,
infix_registry_t registry,
const char *  expected_name,
infix_type_category  expected_category,
size_t  expected_size 
)

A helper function to introspect a type defined by a signature string.

This function simulates what a language binding would do: it parses a type, then checks both its underlying structural properties (category, size) and its semantic name.

◆ main()

int main ( void  )