feat: formatter and oslog()
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#include <types.h>
|
||||
#include <Lib/VAArgs.h>
|
||||
|
||||
void* StringSet(BytePointer destination, ASCII value, Size count);
|
||||
void* MemoryCopy(void* destination, const void* source, Size count);
|
||||
|
||||
Int32 StringCompare(const ASCII* firstString, const ASCII* secondString);
|
||||
Int32 StringCompareWithLimit(const ASCII* firstString, const ASCII* secondString, Size limit);
|
||||
|
||||
ASCII* StringCopy(ASCII* destination, const ASCII* source);
|
||||
ASCII* StringCopyWithLimit(ASCII* destination, const ASCII* source, Size limit);
|
||||
|
||||
Size StringGetLength(const ASCII* string);
|
||||
const ASCII* StringFindLastOccurrenceOfCharacter(const ASCII* string, ASCII separator);
|
||||
|
||||
Int32 StringFormatVariadic(ASCII* string, Size size, const ASCII* format, va_list args);
|
||||
Int32 StringFormat(ASCII* destination, UInt64 size, const ASCII* format, ...);
|
||||
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
typedef __builtin_va_list va_list;
|
||||
|
||||
#define va_start(v, l) __builtin_va_start(v, l)
|
||||
#define va_end(v) __builtin_va_end(v)
|
||||
#define va_arg(v, l) __builtin_va_arg(v, l)
|
||||
#define va_copy(d, s) __builtin_va_copy(d, s)
|
||||
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
#include <types.h>
|
||||
|
||||
enum {
|
||||
kOSLogBufferSize = 1024,
|
||||
};
|
||||
|
||||
void OSLog(const ASCII* format, ...);
|
||||
Reference in New Issue
Block a user