blob: 2f6b62a296d7f563debc57d33192788803e0b070 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* @file
*
* this has to be provided and linked against the fool stack
*/
#include <stdio.h> // provides printf for klog below
#include <malloc.h> // provides malloc & free for kbfree & kballoc below
#include <string.h> // provides memcpy
//void* memcpy(void* restrict dstptr, const void* restrict srcptr, int size);
//#define klog(...) log(FOOLOS_LOG_COLOR,__FILE__ ":" S2(__LINE__), 10, LOG_LABEL_INFO __VA_ARGS__)
#define S1(x) #x
#define S2(x) S1(x)
#define klog(...) printf(__FILE__ ":" S2(__LINE__) __VA_ARGS__)
#define kbfree(x) free(x);
#define kballoc(x) malloc(x*4096);
|