/** * @file * * this has to be provided and linked against the fool stack */ #include // provides printf for klog below #include // provides malloc & free for kbfree & kballoc below #include // 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);