va_list-helper 0.0.2

Test helper for the `va_list` crate. Not for user consumption.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 A quick and evil C file to convert a rust FFI va-args function into a call with va_list passed
 */
#include <stdio.h>
#include <stdarg.h>

extern void inbound(void *context, unsigned int count, va_list args);

void dispatch(void* context, unsigned int count, ...)
{
	va_list	args;
	va_start(args, count);
	inbound(context, count, args);
	va_end(args);
}