Change default trace level in release builds from `INFO` to `WARN`. Fortune for naka's current commit: Small blessing − 小吉master
parent
2ed48ec977
commit
4465050a29
@ -0,0 +1,17 @@
|
||||
//! Generic pointer slice
|
||||
#ifndef _SLICE_H
|
||||
#define _SLICE_H
|
||||
|
||||
#include "ints.h"
|
||||
|
||||
typedef struct _slice {
|
||||
union {
|
||||
void* ptr;
|
||||
u8* bytes;
|
||||
};
|
||||
usize len;
|
||||
} slice_t;
|
||||
|
||||
#define SLICE(origin, length) ((struct _slice){ .ptr = ((void*)(origin)), .len = ((usize)(length)) })
|
||||
|
||||
#endif /* _SLICE_H */
|
Loading…
Reference in new issue