Veritable Lasagna
An Allocator & Data Structure Library for C.
Loading...
Searching...
No Matches
vl_numtypes.c File Reference
#include <stddef.h>
#include <vl/vl_numtypes.h>
#include "vl_memory.h"
+ Include dependency graph for vl_numtypes.c:

Macros

#define GEN_CONVERTER(src_type, src_name, dst_type, dst_name)
 

Variables

const vl_numtype_info VL_NUMTYPE_INFO [VL_NUMTYPE_MAX]
 Provides runtime numeric type introspection.
 

Macro Definition Documentation

◆ GEN_CONVERTER

#define GEN_CONVERTER (   src_type,
  src_name,
  dst_type,
  dst_name 
)
Value:
static void vlConv_##src_name##_to_##dst_name(const void* src, void* dst) \
{ \
*(dst_type*)dst = (dst_type)(*(const src_type*)src); \
}

Variable Documentation

◆ VL_NUMTYPE_INFO

const vl_numtype_info VL_NUMTYPE_INFO[VL_NUMTYPE_MAX]

Provides runtime numeric type introspection.